This website works better with JavaScript.
Home
Explore
Help
Sign In
rinri
/
slstatus
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
datetime: Add error message
master
Aaron Marcher
6 years ago
parent
ee5ec75621
commit
932f65c373
1 changed files
with
1 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
components/datetime.c
+ 1
- 0
components/datetime.c
View File
@@ -10,6 +10,7 @@ datetime(const char *fmt)
t = time(NULL);
t = time(NULL);
if (!strftime(buf, sizeof(buf), fmt, localtime(&t))) {
if (!strftime(buf, sizeof(buf), fmt, localtime(&t))) {
fprintf(stderr, "strftime: Result string exceeds buffer size\n");
return NULL;
return NULL;
}
}
Write
Preview
Loading…
Cancel
Save