[git commit] diff: code shrink
Denys Vlasenko
vda.linux at googlemail.com
Fri Jul 4 19:40:51 UTC 2025
commit: https://git.busybox.net/busybox/commit/?id=142ac2d796dddea50d8926d1747523182c12d097
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
diffreg 1317 1307 -10
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
editors/diff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/editors/diff.c b/editors/diff.c
index 1adc4cbc7..6f4ed9712 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -741,7 +741,7 @@ static int diffreg(char *file[2])
fd = fd_tmp;
xlseek(fd, 0, SEEK_SET);
}
- fp[i] = fdopen(fd, "r");
+ fp[i] = xfdopen_for_read(fd);
}
setup_common_bufsiz();
More information about the busybox-cvs
mailing list