aboutsummaryrefslogtreecommitdiff
path: root/util-linux/hexdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/hexdump.c')
-rw-r--r--util-linux/hexdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/hexdump.c b/util-linux/hexdump.c
index 10c57fd61..7630153e7 100644
--- a/util-linux/hexdump.c
+++ b/util-linux/hexdump.c
@@ -23,7 +23,7 @@ static void bb_dump_addfile(char *name)
23 23
24 fp = xfopen(name, "r"); 24 fp = xfopen(name, "r");
25 25
26 while ((buf = xmalloc_getline(fp)) != NULL) { 26 while ((buf = xmalloc_fgetline(fp)) != NULL) {
27 p = skip_whitespace(buf); 27 p = skip_whitespace(buf);
28 28
29 if (*p && (*p != '#')) { 29 if (*p && (*p != '#')) {
@@ -135,7 +135,7 @@ int hexdump_main(int argc, char **argv)
135 char *buf; 135 char *buf;
136 fp = xfopen(*argv, "r"); 136 fp = xfopen(*argv, "r");
137 jump_in: 137 jump_in:
138 while ((buf = xmalloc_getline(fp)) != NULL) { 138 while ((buf = xmalloc_fgetline(fp)) != NULL) {
139 p = buf; 139 p = buf;
140 while (1) { 140 while (1) {
141 /* skip address or previous byte */ 141 /* skip address or previous byte */