diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c index 8c77a0ffc..2b01ec7ff 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -857,7 +857,11 @@ static void process_file(FILE * file) | |||
857 | 857 | ||
858 | if (tmp) { | 858 | if (tmp) { |
859 | *tmp = '\0'; | 859 | *tmp = '\0'; |
860 | puts(pattern_space); | ||
861 | *tmp = '\n'; | ||
862 | break; | ||
860 | } | 863 | } |
864 | /* Fall Through */ | ||
861 | } | 865 | } |
862 | case 'p': /* Write the current pattern space to output */ | 866 | case 'p': /* Write the current pattern space to output */ |
863 | puts(pattern_space); | 867 | puts(pattern_space); |