diff options
Diffstat (limited to 'usr.bin/xstr/xstr.c')
-rw-r--r-- | usr.bin/xstr/xstr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xstr/xstr.c b/usr.bin/xstr/xstr.c index 5f3d0ea..5b68c53 100644 --- a/usr.bin/xstr/xstr.c +++ b/usr.bin/xstr/xstr.c @@ -152,7 +152,7 @@ process(name) continue; } for (cp = linebuf; c = *cp++;) switch (c) { - + case '"': if (incomm) goto def; @@ -185,7 +185,7 @@ process(name) continue; } goto def; - + def: default: putchar(c); @@ -219,7 +219,7 @@ yankstr(cpp) if (c == 0) break; if (c == '\n') { - if (fgets(linebuf, sizeof linebuf, stdin) + if (fgets(linebuf, sizeof linebuf, stdin) == NULL) { if (ferror(stdin)) { perror("x.c"); |