projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dc43cb
)
Report an error when the width used by putaddr is less than the label width.
author
markus schnalke
<meillo@marmaro.de>
Tue, 27 Mar 2012 10:41:58 +0000
(12:41 +0200)
committer
markus schnalke
<meillo@marmaro.de>
Tue, 27 Mar 2012 10:41:58 +0000
(12:41 +0200)
Pulled in from nmh. Thanks to Ken Hornstein.
sbr/fmt_scan.c
patch
|
blob
|
history
diff --git
a/sbr/fmt_scan.c
b/sbr/fmt_scan.c
index
113b8cf
..
8414829
100644
(file)
--- a/
sbr/fmt_scan.c
+++ b/
sbr/fmt_scan.c
@@
-775,6
+775,11
@@
fmt_scan(struct format *format, char *scanl, int width, int *dat)
sp = fmt->f_text;
indent = strlen(sp);
wid -= indent;
+ if (wid <= 0) {
+ adios(NULL, "putaddr -- num register (%d) "
+ "must be greater than label "
+ "width (%d)", value, indent);
+ }
while( (c = *sp++) && cp < ep)
*cp++ = c;
while (len > wid) {