lib/date_to_str.c, configure.ac: Replace calls to strlcpy(3) by strtcpy(3)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Iker Pedrosa
parent
3c5a563654
commit
2eceb4381c
+3
-2
@@ -33,6 +33,7 @@
|
||||
|
||||
#ident "$Id$"
|
||||
|
||||
#include "strtcpy.h"
|
||||
#include "prototypes.h"
|
||||
|
||||
void
|
||||
@@ -43,13 +44,13 @@ date_to_str(size_t size, char buf[size], long date)
|
||||
|
||||
t = date;
|
||||
if (date < 0) {
|
||||
(void) strlcpy(buf, "never", size);
|
||||
(void) strtcpy(buf, "never", size);
|
||||
return;
|
||||
}
|
||||
|
||||
tm = gmtime(&t);
|
||||
if (tm == NULL) {
|
||||
(void) strlcpy(buf, "future", size);
|
||||
(void) strtcpy(buf, "future", size);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user