diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/patch_bbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/patch_bbox.c b/editors/patch_bbox.c index 78aa5fde8..aae7b7987 100644 --- a/editors/patch_bbox.c +++ b/editors/patch_bbox.c | |||
@@ -188,8 +188,8 @@ int patch_main(int argc UNUSED_PARAM, char **argv) | |||
188 | unsigned src_last_line = 1; | 188 | unsigned src_last_line = 1; |
189 | unsigned dst_last_line = 1; | 189 | unsigned dst_last_line = 1; |
190 | 190 | ||
191 | if ((sscanf(patch_line, "@@ -%d,%d +%d,%d", &src_beg_line, &src_last_line, &dst_beg_line, &dst_last_line) < 3) | 191 | if ((sscanf(patch_line, "@@ -%u,%u +%u,%u", &src_beg_line, &src_last_line, &dst_beg_line, &dst_last_line) < 3) |
192 | && (sscanf(patch_line, "@@ -%d +%d,%d", &src_beg_line, &dst_beg_line, &dst_last_line) < 2) | 192 | && (sscanf(patch_line, "@@ -%u +%u,%u", &src_beg_line, &dst_beg_line, &dst_last_line) < 2) |
193 | ) { | 193 | ) { |
194 | /* No more hunks for this file */ | 194 | /* No more hunks for this file */ |
195 | break; | 195 | break; |