diff --git a/src/thread/n3ds/SDL_systhread.c b/src/thread/n3ds/SDL_systhread.c index 0eb44c732..091ab1a4f 100644 --- a/src/thread/n3ds/SDL_systhread.c +++ b/src/thread/n3ds/SDL_systhread.c @@ -55,7 +55,7 @@ int SDL_SYS_CreateThread(SDL_Thread *thread) svcGetThreadPriority(&priority, CUR_THREAD_HANDLE); /* prefer putting audio thread on system core */ - if (thread->name && SDL_strcmp(thread->name, "SDLAudioP") == 0 && R_SUCCEEDED(APT_SetAppCpuTimeLimit(30))) { + if (thread->name && (SDL_strncmp(thread->name, "SDLAudioP", 9) == 0) && R_SUCCEEDED(APT_SetAppCpuTimeLimit(30))) { cpu = 1; }