OSDN Git Service

Correct defect introduced by 2012-08-03 commit.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Sun, 2 Sep 2012 20:05:54 +0000 (21:05 +0100)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Sun, 2 Sep 2012 20:05:54 +0000 (21:05 +0100)
ChangeLog
src/approot.c

index 084da0d..38ace31 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
+       Correct defect introduced by 2012-08-03 commit.
+
+       * src/approot.c (AppPathNameW): Add omitted 'else', so that tail
+       pointer isn't moved after the APPROOT prefix is truncated.
+
+2012-09-02  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
        Remap Mercurial subrepository reference via local hg-git clone.
 
        * .hgsub (build-aux): Point to ../build-aux; this must be a locally
index 3407151..afd5afd 100644 (file)
@@ -145,8 +145,9 @@ wchar_t *AppPathNameW( const wchar_t *relpath )
         * The final sub-directory is either "bin" or "sbin"; prune it...
         */
        *tail = L'\0';
-       /*
-        * ...but when it doesn't match either of these, just adjust the
+
+      else
+       /* ...but when it doesn't match either of these, just adjust the
         * "tail" pointer, so we leave the final sub-directory name as
         * part of the "prefix".
         */