Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Reverted r3255:3256. Don't actually need it unless the build is broke…
Browse files Browse the repository at this point in the history
…n. :)
  • Loading branch information
icculus committed Jul 14, 2007
1 parent f6aeb0a commit 5509dbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stdlib/SDL_malloc.c
Expand Up @@ -610,6 +610,7 @@ DEFAULT_MMAP_THRESHOLD default: 256K
#endif /* MALLINFO_FIELD_TYPE */

#define memset SDL_memset
#define memcpy SDL_memcpy
#define malloc SDL_malloc
#define calloc SDL_calloc
#define realloc SDL_realloc
Expand Down Expand Up @@ -3912,7 +3913,7 @@ internal_realloc(mstate m, void *oldmem, size_t bytes)
void *newmem = internal_malloc(m, bytes);
if (newmem != 0) {
size_t oc = oldsize - overhead_for(oldp);
SDL_memcpy(newmem, oldmem, (oc < bytes) ? oc : bytes);
memcpy(newmem, oldmem, (oc < bytes) ? oc : bytes);
internal_free(m, oldmem);
}
return newmem;
Expand Down

0 comments on commit 5509dbe

Please sign in to comment.