diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-29 06:50:17 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-29 06:50:17 +0000 |
commit | 24d8e7d787aa1940030a1beaabdd4388588ca512 (patch) | |
tree | 2da0e6ade947ff1a5a77d3911015781a457df458 /editors | |
parent | c1525e84dd6a3ac8252ce10e6ae605bd37d60797 (diff) |
Stuf
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editors/sed.c b/editors/sed.c index a3e635d3a..0df53a7f8 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -126,7 +126,6 @@ extern int sed_main (int argc, char **argv) } } - fprintf(stderr, "argc=%d\n", argc); while (argc-- > 0) { name = *argv++; @@ -135,10 +134,9 @@ extern int sed_main (int argc, char **argv) perror (name); continue; } - fprintf(stderr, "filename is '%s'\n", name); - haystack = (char*)malloc( 80); - while (fgets (haystack, sizeof (haystack), fp)) { + haystack = (char*)malloc( BUF_SIZE); + while (fgets (haystack, BUF_SIZE-1, fp)) { foundOne = replace_match(haystack, needle, newNeedle, ignoreCase); if (noprintFlag==TRUE && foundOne==TRUE) |