Commit 6d06a413 authored by Nevadita's avatar Nevadita

wfadatad: static codecheck fixes

parent 10cfe333
Pipeline #1311 passed with stage
in 18 seconds
......@@ -22,9 +22,9 @@ char *get_date(time_t *t, char *tbuf)
if (!tbuf)
return NULL;
sprintf(tmpbuf, "%s", ctime(&now));
snprintf(tmpbuf, 32, "%s", ctime(&now));
tmpbuf[strlen(tmpbuf) - 1] = '\0';
sprintf(tbuf, "%s", tmpbuf);
snprintf(tbuf, 32, "%s", tmpbuf);
return tbuf;
}
......@@ -62,7 +62,7 @@ char *get_timestamp(time_t *t, char *tbuf)
toff_hour,
toff_min);
sprintf(tbuf, "%s", tmpbuf);
snprintf(tbuf, 32, "%s", tmpbuf);
return tbuf;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment