Reset the result buffer after each argument.
authorFrancois Gouget <fgouget@codeweavers.com>
Sun, 11 May 2003 02:47:28 +0000 (02:47 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Sun, 11 May 2003 02:47:28 +0000 (02:47 +0000)
programs/winepath/winepath.c

index 6e44709..fbce911 100644 (file)
@@ -151,6 +151,7 @@ int main(int argc, char *argv[])
 
     for (i = 1; argv[i]; i++)
     {
+        *path='\0';
         if (outputformats & LONGFORMAT) {
             GetLongPathNameA(argv[i], path, sizeof(path));
             printf("%s\n", path);