Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent 5c0cc31 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:deprecated/stb.h+1 added
9228 unmodified lines
9229 int z;9230 // need to allow for non-writeable strings... assume they're small9231 if (s - last < 256) {9232 stb_strncpy(buffer, last, (int) (s-last+1));9233 buffer[s-last] = 0;9234 z = stb__wildmatch_raw2(buffer, candidate, search, insensitive);9235 } else {9236 *s = 0;9237 z = stb__wildmatch_raw2(last, candidate, search, insensitive);
5218 unmodified lines