X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fanno.c;h=170855798c44476ef8218fb7d798b4f359169d27;hp=9e287be4a3a7b94b68c0fcc52a0d829cea9958da;hb=641a9d953e86685f9ca2f3da72e9a94e5bcfd69e;hpb=9cf6132a6ea29968131a000bc2fb6860affac45e diff --git a/uip/anno.c b/uip/anno.c index 9e287be..1708557 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -53,6 +53,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + /* ** static prototypes */ @@ -478,11 +480,13 @@ dodel(int fd, unsigned char *comp, char *text, FILE *tmp, int number) ** a long path name. */ for (n=0, cp=field; (c=getc(fp)) != EOF; *cp++ = c) { - if (c == '\n' && (c = getc(fp)) != ' ' && - c != '\t') { - ungetc(c, fp); + if (c == '\n') { + ungetc((c = getc(fp)), fp); + if (c != ' ' && c != '\t') { + c = '\n'; + break; + } c = '\n'; - break; } if (++n >= field_size - 1) {