diff options
Diffstat (limited to 'editors/patch.c')
-rw-r--r-- | editors/patch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/patch.c b/editors/patch.c index 6f42b835c..1c9e97005 100644 --- a/editors/patch.c +++ b/editors/patch.c | |||
@@ -85,7 +85,7 @@ int patch_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
85 | patch_file = xfopen_stdin(i); | 85 | patch_file = xfopen_stdin(i); |
86 | } | 86 | } |
87 | 87 | ||
88 | patch_line = xmalloc_getline(patch_file); | 88 | patch_line = xmalloc_fgetline(patch_file); |
89 | while (patch_line) { | 89 | while (patch_line) { |
90 | FILE *src_stream; | 90 | FILE *src_stream; |
91 | FILE *dst_stream; | 91 | FILE *dst_stream; |
@@ -106,7 +106,7 @@ int patch_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
106 | /* Extract the filename used before the patch was generated */ | 106 | /* Extract the filename used before the patch was generated */ |
107 | new_filename = extract_filename(patch_line, patch_level, "--- "); | 107 | new_filename = extract_filename(patch_line, patch_level, "--- "); |
108 | // was old_filename above | 108 | // was old_filename above |
109 | patch_line = xmalloc_getline(patch_file); | 109 | patch_line = xmalloc_fgetline(patch_file); |
110 | if (!patch_line) goto quit; | 110 | if (!patch_line) goto quit; |
111 | } while (!new_filename); | 111 | } while (!new_filename); |
112 | free(new_filename); // "source" filename is irrelevant | 112 | free(new_filename); // "source" filename is irrelevant |