summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-10-24 13:19:25 +0200
committerTyge Løvset <[email protected]>2020-10-24 13:19:25 +0200
commita1c0c53479ba7d8ac605fc1fb22ddb996ddcf3df (patch)
tree8f459f95cc3ceced2b8e72a9eceafc74893cbfae
parentee968f3972e2f34fc6f2f0dfb6eeb305cbecf4a1 (diff)
downloadSTC-modified-a1c0c53479ba7d8ac605fc1fb22ddb996ddcf3df.tar.gz
STC-modified-a1c0c53479ba7d8ac605fc1fb22ddb996ddcf3df.zip
Minor fix to c_timef() feature.
-rw-r--r--stc/cfmt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stc/cfmt.h b/stc/cfmt.h
index dfc745be..2b544051 100644
--- a/stc/cfmt.h
+++ b/stc/cfmt.h
@@ -33,7 +33,7 @@ _cfmt_printf(int s, const char* fmt, ...);
STC_API char *
_cfmt_conv(int nargs, const char *fmt, ...);
enum {_cfmt_bn=4, _cfmt_sn=64};
-STC_INLINE const char* _cfmt_strftime(char* n, char buf[_cfmt_bn][_cfmt_sn], size_t maxsize, const char *fmt, const struct tm *timeptr) {
+STC_INLINE const char* _cfmt_strftime(char* n, char buf[][_cfmt_sn], size_t maxsize, const char *fmt, const struct tm *timeptr) {
if (*n >= _cfmt_bn) return fmt;
strftime(buf[*n], maxsize, fmt, timeptr);
return buf[(*n)++];