From bf022eecb914d3fd52738e14fcbd21b28a187fa4 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Sun, 11 May 2003 02:47:28 +0000 Subject: [PATCH] Reset the result buffer after each argument. --- programs/winepath/winepath.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/winepath/winepath.c b/programs/winepath/winepath.c index 6e4470908bb..fbce911ec17 100644 --- a/programs/winepath/winepath.c +++ b/programs/winepath/winepath.c @@ -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); -- 2.11.4.GIT