aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/rdate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index 3c3b152a2..a5699ebf4 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -48,7 +48,7 @@ static time_t askremotedate(const char *host)
48 48
49 fd = xconnect(host, port); 49 fd = xconnect(host, port);
50 50
51 if (read(fd, (void *)&nett, 4) != 4) /* read time from server */ 51 if (safe_read(fd, (void *)&nett, 4) != 4) /* read time from server */
52 bb_error_msg_and_die("%s did not send the complete time", host); 52 bb_error_msg_and_die("%s did not send the complete time", host);
53 53
54 close(fd); 54 close(fd);