Introduction
Introduction Statistics Contact Development Disclaimer Help
tdate: don't use argument for time(2) as a call can fail - spoon - dwm status u…
git clone git://src.adamsgaard.dk/spoon
Log
Files
Refs
LICENSE
---
commit 12a65a4514d03ab4c597cd6557558981c36a0d15
parent bd6425ea89b3da5f3f9da693110db6e891b3c474
Author: Svyatoslav Mishyn <[email protected]>
Date: Mon, 23 Oct 2017 23:42:23 +0300
date: don't use argument for time(2) as a call can fail
see BUGS section: http://man7.org/linux/man-pages/man2/time.2.html#BUGS
Diffstat:
M date.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/date.c b/date.c
t@@ -9,7 +9,7 @@ dateread(void *arg, char *buf, size_t len)
struct tm *now;
time_t t;
- time(&t);
+ t = time(NULL);
now = localtime(&t);
if (now == NULL)
return -1;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.