Replace calls to asprintf with SDL_asprintf

This commit is contained in:
Cameron Cawley authored and Sam Lantinga committed 2021-09-22 11:53:46 -07:00
1 parent 25a614bc3e
commit 08ae790497
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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;