printf: fix a trivial bug

This commit is contained in:
Denis Vlasenko 2008-05-31 18:32:56 +00:00
parent f4e6bd0bf3
commit a76669c595

View File

@ -116,7 +116,7 @@ static void print_direc(char *format, unsigned fmt_length,
saved = format[fmt_length]; saved = format[fmt_length];
format[fmt_length] = '\0'; format[fmt_length] = '\0';
switch (p[fmt_length - 1]) { switch (format[fmt_length - 1]) {
case 'd': case 'd':
case 'i': case 'i':
if (field_width < 0) { if (field_width < 0) {