stb.h: fix bug in stb_readdir caused by change to stb_strncpy

This commit is contained in:
Sean Barrett 2021-07-07 00:29:19 -07:00
parent 5c0cc31fb0
commit 95372dc4f8
1 changed files with 1 additions and 0 deletions

View File

@ -9230,6 +9230,7 @@ int stb__wildmatch_raw(char *expr, char *candidate, int search, int insensitive)
// need to allow for non-writeable strings... assume they're small
if (s - last < 256) {
stb_strncpy(buffer, last, (int) (s-last+1));
buffer[s-last] = 0;
z = stb__wildmatch_raw2(buffer, candidate, search, insensitive);
} else {
*s = 0;