mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Use SDL C runtime strlen()
This commit is contained in:
parent
ca42373fb5
commit
fed9b60492
@ -799,7 +799,7 @@ ALSA_HotplugThread(void *arg)
|
|||||||
|
|
||||||
for (j = 0; prefixes[j]; j++) {
|
for (j = 0; prefixes[j]; j++) {
|
||||||
const char *prefix = prefixes[j];
|
const char *prefix = prefixes[j];
|
||||||
const size_t prefixlen = strlen(prefix);
|
const size_t prefixlen = SDL_strlen(prefix);
|
||||||
if (SDL_strncmp(name, prefix, prefixlen) == 0) {
|
if (SDL_strncmp(name, prefix, prefixlen) == 0) {
|
||||||
if (j < bestmatch) {
|
if (j < bestmatch) {
|
||||||
bestmatch = j;
|
bestmatch = j;
|
||||||
|
Loading…
Reference in New Issue
Block a user