aboutsummaryrefslogtreecommitdiff
path: root/util-linux/hwclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/hwclock.c')
-rw-r--r--util-linux/hwclock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 3f531555b..6c99977cf 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -69,7 +69,7 @@ static void show_clock(const char **pp_rtcname, int utc)
69 strftime(cp, sizeof(cp), "%c", ptm); 69 strftime(cp, sizeof(cp), "%c", ptm);
70#else 70#else
71 char *cp = ctime(&t); 71 char *cp = ctime(&t);
72 strchrnul(cp, '\n')[0] = '\0'; 72 chomp(cp);
73#endif 73#endif
74 74
75#if !SHOW_HWCLOCK_DIFF 75#if !SHOW_HWCLOCK_DIFF