--- physfs-2.0.3/test/test_physfs.c.orig 2018-05-25 07:16:50.537408933 +0000 +++ physfs-2.0.3/test/test_physfs.c 2018-05-25 07:30:05.212810174 +0000 @@ -876,7 +876,7 @@ { time_t t = (time_t) modtime; char *str = ctime(&t); - strncpy(modstr, str, strsize); + memcpy(modstr, str, strsize); modstr[strsize-1] = '\0'; } /* modTimeToStr */