Mercurial > sdl-ios-xcode
comparison src/loadso/macosx/SDL_sysloadso.c @ 1375:3793c4b34a92
sprintf should have been snprintf
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 19 Feb 2006 18:46:58 +0000 |
parents | 19418e4422cb |
children | c0a74f199ecf |
comparison
equal
deleted
inserted
replaced
1374:998b7f9a287a | 1375:3793c4b34a92 |
---|---|
1014 char *malloc_sym = NULL; | 1014 char *malloc_sym = NULL; |
1015 dolock(); | 1015 dolock(); |
1016 malloc_sym = SDL_malloc(sym_len + 2); | 1016 malloc_sym = SDL_malloc(sym_len + 2); |
1017 if (malloc_sym) | 1017 if (malloc_sym) |
1018 { | 1018 { |
1019 SDL_sprintf(malloc_sym, sym_len+2, "_%s", symbol); | 1019 SDL_snprintf(malloc_sym, sym_len+2, "_%s", symbol); |
1020 value = dlsymIntern(handle, malloc_sym, 1); | 1020 value = dlsymIntern(handle, malloc_sym, 1); |
1021 SDL_free(malloc_sym); | 1021 SDL_free(malloc_sym); |
1022 } | 1022 } |
1023 else | 1023 else |
1024 { | 1024 { |