projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
corrected termination condition for fill character introduced in last version
[mmh]
/
sbr
/
fmt_scan.c
diff --git
a/sbr/fmt_scan.c
b/sbr/fmt_scan.c
index
6781535
..
4365e35
100644
(file)
--- a/
sbr/fmt_scan.c
+++ b/
sbr/fmt_scan.c
@@
-315,7
+315,7
@@
fmt_scan (struct format *format, char *scanl, int width, int *dat)
cp += n;
} else n = 0;
c = abs(fmt->f_width) - n;
- for (; c && cp < ep; c--) *cp++ = fmt->f_fill;
+ for (; (c > 0) && (cp < ep); c--) *cp++ = fmt->f_fill;
break;
case FT_CHAR: