mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-25 22:26:08 +00:00
Fixed potential buffer overflow
This commit is contained in:
@@ -95,7 +95,7 @@ static int get_driindex(void)
|
||||
}
|
||||
|
||||
SDL_strlcpy(device + kmsdrm_dri_pathsize, kmsdrm_dri_devname,
|
||||
sizeof(device) - kmsdrm_dri_devnamesize);
|
||||
sizeof(device) - kmsdrm_dri_pathsize);
|
||||
while((res = readdir(folder)) != NULL && available < 0) {
|
||||
if (SDL_memcmp(res->d_name, kmsdrm_dri_devname,
|
||||
kmsdrm_dri_devnamesize) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user