1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 12:58:08 +01:00

Small bug fixes over 0.20.2 -Dan

This commit is contained in:
dan
1998-10-23 17:07:08 +00:00
parent 9af1c6c415
commit abde3e0c4e
13 changed files with 111 additions and 78 deletions

View File

@@ -43,6 +43,7 @@ char *alloca ();
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include "wraster.h"
@@ -101,7 +102,7 @@ RGetImageFromXPMData(RContext *context, char **data)
if (!color_table[0] || !color_table[1] || !color_table[2] ||
!color_table[3] || !symbol_table || !bsize) {
RErrorCode = RERR_MEMORY;
RErrorCode = RERR_NOMEMORY;
alloca(0);
return NULL;
}
@@ -270,7 +271,7 @@ RLoadXPM(RContext *context, char *file, int index)
if (!color_table[0] || !color_table[1] || !color_table[2] ||
!color_table[3] || !symbol_table || !bsize) {
RErrorCode = RERR_MEMORY;
RErrorCode = RERR_NOMEMORY;
fclose(f);
alloca(0);
return NULL;