diff options
-rw-r--r-- | man2html/man2html.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/man2html/man2html.c b/man2html/man2html.c index 68bb4d0..1a2ae54 100644 --- a/man2html/man2html.c +++ b/man2html/man2html.c @@ -2297,8 +2297,8 @@ scan_request(char *c) { { INTDEF *intd; c=c+j; - i=V(c[0],c[1]); - c=c+2; + i=str_to_code(c, 0); + c+=strcspn(c, " \n"); intd=intdef; while (intd && intd->nr!=i) intd=intd->next; if (!intd) { @@ -2309,12 +2309,11 @@ scan_request(char *c) { intd->next=intdef; intdef=intd; } - while (*c == ' ' || *c == '\t') c++; + c+=strspn(c, " \t"); c=scan_expression(c,&intd->val); - if (*c!='\n') { - while (*c == ' ' || *c == '\t') c++; + c+=strspn(c, " \t"); + if (*c!='\n') c=scan_expression(c,&intd->incr); - } c=skip_till_newline(c); break; } |