aboutsummaryrefslogtreecommitdiff
path: root/editors/patch_bbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/patch_bbox.c')
-rw-r--r--editors/patch_bbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/patch_bbox.c b/editors/patch_bbox.c
index 8e09ef488..d1f1ee2d6 100644
--- a/editors/patch_bbox.c
+++ b/editors/patch_bbox.c
@@ -30,7 +30,7 @@ static unsigned copy_lines(FILE *src_stream, FILE *dst_stream, unsigned lines_co
30 break; 30 break;
31 } 31 }
32 if (fputs(line, dst_stream) == EOF) { 32 if (fputs(line, dst_stream) == EOF) {
33 bb_perror_msg_and_die("error writing to new file"); 33 bb_simple_perror_msg_and_die("error writing to new file");
34 } 34 }
35 free(line); 35 free(line);
36 lines_count--; 36 lines_count--;
@@ -148,7 +148,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv)
148 148
149 new_filename = extract_filename(patch_line, patch_level, "+++ "); 149 new_filename = extract_filename(patch_line, patch_level, "+++ ");
150 if (!new_filename) { 150 if (!new_filename) {
151 bb_error_msg_and_die("invalid patch"); 151 bb_simple_error_msg_and_die("invalid patch");
152 } 152 }
153 153
154 /* Get access rights from the file to be patched */ 154 /* Get access rights from the file to be patched */
@@ -209,7 +209,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv)
209 /* src_beg_line will be 0 if it's a new file */ 209 /* src_beg_line will be 0 if it's a new file */
210 count = src_beg_line - src_cur_line; 210 count = src_beg_line - src_cur_line;
211 if (copy_lines(src_stream, dst_stream, count)) { 211 if (copy_lines(src_stream, dst_stream, count)) {
212 bb_error_msg_and_die("bad src file"); 212 bb_simple_error_msg_and_die("bad src file");
213 } 213 }
214 src_cur_line += count; 214 src_cur_line += count;
215 dst_cur_line += count; 215 dst_cur_line += count;