src/loadso/macosx/SDL_sysloadso.c
changeset 1375 3793c4b34a92
parent 1361 19418e4422cb
child 1379 c0a74f199ecf
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 	{