summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/printk.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/libcsupport/src/printk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/printk.c b/cpukit/libcsupport/src/printk.c
index 20178224db..2d833db4e3 100644
--- a/cpukit/libcsupport/src/printk.c
+++ b/cpukit/libcsupport/src/printk.c
@@ -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;