mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 21:17:45 +00:00
Replace calls to asprintf with SDL_asprintf
This commit is contained in:
committed by
Sam Lantinga
parent
25a614bc3e
commit
08ae790497
@@ -426,7 +426,7 @@ BSD_JoystickOpen(SDL_Joystick *joy, int device_index)
|
||||
str[i] = UGETW(usd.usd_desc.bString[i]);
|
||||
}
|
||||
str[i] = '\0';
|
||||
asprintf(&new_name, "%s @ %s", str, path);
|
||||
SDL_asprintf(&new_name, "%s @ %s", str, path);
|
||||
if (new_name != NULL) {
|
||||
SDL_free(joydevnames[numjoysticks]);
|
||||
joydevnames[numjoysticks] = new_name;
|
||||
|
||||
Reference in New Issue
Block a user