Win32 FAT installer: fix type typo (which happened to cancel itself out...)
authorH. Peter Anvin <hpa@zytor.com>
Thu, 25 Jan 2007 05:43:58 +0000 (21:43 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 25 Jan 2007 05:43:58 +0000 (21:43 -0800)
I had written "char *c = ..." instead of "char c = ..."; as it turned out,
the resulting (invalid) type conversions all worked themselves out and it
didn't matter, except for compiler warnings...

win32/syslinux.c

index f5d6eae..613b1fc 100644 (file)
@@ -463,7 +463,7 @@ int main(int argc, char *argv[])
     new_ldlinux_name[2] = '\\';
     
     for (sd = subdir; *sd; sd++) {
-      char *c = *sd;
+      char c = *sd;
 
       if (c == '/' || c == '\\') {
        if (slash)