1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 15:48:06 -05:00

uxsftpserver.c: do not let Clang think we append integer to string

This commit is contained in:
Pavel I. Kryukov 2018-10-21 15:00:09 +03:00 committed by Simon Tatham
parent fafb898891
commit 1806b71241

View File

@ -667,7 +667,7 @@ static void uss_readdir(SftpServer *srv, SftpReplyBuilder *reply,
longnamebuf = dupprintf(
"%s %3u %-8s %-8s %8s %.3s %2d %02d:%02d %s",
perms, (unsigned)st.st_nlink, user, group, sizebuf,
("JanFebMarAprMayJunJulAugSepOctNovDec" + 3*tm.tm_mon),
(&"JanFebMarAprMayJunJulAugSepOctNovDec"[3*tm.tm_mon]),
tm.tm_mday, tm.tm_hour, tm.tm_min, de->d_name);
longname = ptrlen_from_asciz(longnamebuf);