altos: Fix command-line FAT filename parsing
authorKeith Packard <keithp@keithp.com>
Sun, 31 Mar 2013 19:46:41 +0000 (12:46 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 31 Mar 2013 19:46:41 +0000 (12:46 -0700)
Pad extension with spaces

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_fat.c

index 9cd3d34be25b32cc83ccae414befd1e1b1b5a204..3e9c00b5e32e8f9fa80122d713b19749c9054976 100644 (file)
@@ -1263,6 +1263,8 @@ ao_fat_parse_name(char name[11])
                }
                ao_cmd_lex();
        }
+       while (c < 11)
+               name[c++] = ' ';
 }
 
 static void