2001-10-10 Joel Sherrill <joel@OARcorp.com>

* libc/printk.c (printNum): Properly handle a maxwidth of 0
	as reported by Nick Hennenfent <NICK.HENNENFENT@ROCHE.COM>.
This commit is contained in:
Joel Sherrill
2001-10-10 18:42:07 +00:00
parent 083b72aece
commit ceead58b56
4 changed files with 8 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ printNum(long unsigned int num, int base, int sign, int maxwidth, int lead)
if ( (sign == 1) && ((long)num < 0) ) {
BSP_output_char('-');
num = -num;
maxwidth--;
if (maxwidth) maxwidth--;
}
count = 0;