mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 01:45:45 +00:00
Fixed potential buffer overflow
This commit is contained in:
parent
65c9a58f5e
commit
6aab5a089d
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue