aboutsummaryrefslogtreecommitdiff
path: root/util-linux/rdate.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-07-22 08:26:05 +0000
committerEric Andersen <andersen@codepoet.org>2003-07-22 08:26:05 +0000
commit725db196c36789b740e589b0b8a7da341af77351 (patch)
treefff80ce29c30a7ac6da505d4142d1af31c3a8af6 /util-linux/rdate.c
parentd9fe958921259372327a76307131e32a44fe15ad (diff)
downloadbusybox-725db196c36789b740e589b0b8a7da341af77351.tar.gz
Very minor rdate updates
Diffstat (limited to 'util-linux/rdate.c')
-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)
fd = xconnect(host, port);
- if (read(fd, (void *)&nett, 4) != 4) /* read time from server */
+ if (safe_read(fd, (void *)&nett, 4) != 4) /* read time from server */
bb_error_msg_and_die("%s did not send the complete time", host);
close(fd);