void printauth(searchCtx *ctx, nick *sender, authname *anp) {
reguser *rup;
char *la;
+ char timebuf[TIMELEN];
+
/* StringBuf b;
char output[1024];
nick *tnp;
*/
if (rup->lastauth) {
- char timebuf[20];
- strftime(timebuf, 15, "%d/%m/%y %H:%M", gmtime(&(rup->lastauth)));
+ q9strftime(timebuf, sizeof(timebuf), rup->lastauth);
la = timebuf;
} else {
la = "(never)";