This commit is contained in:
Sam Lantinga
2007-08-11 20:46:24 +00:00
parent 4b88504be7
commit ecf8db2e86

View File

@@ -78,7 +78,8 @@ X11_TrackColormap(Display * display, int scrNum, Colormap colormap,
/* increase the table by one entry. If the table is NULL create the
first entrty */
cmapTable = SDL_realloc(cmapTable, (numCmaps + 1) * sizeof(cmapTableEntry));
cmapTable =
SDL_realloc(cmapTable, (numCmaps + 1) * sizeof(cmapTableEntry));
if (NULL == cmapTable) {
SDL_SetError("Out of memory in X11_TrackColormap()");
return;