rem: sprintf(RErrorString, "out of memory");
context: load_graymap(char *file_name, FILE *file, int w, int h, int max, int raw){    RImage *image;        image = RCreateImage(w, h, 0);    if (!image) {	sprintf(RErrorString, "out of memory");	return NULL;    }    if (!raw) {	    } else {	if (max<256) {	    if (!fgets(image->data[0], w*h, file))		goto short_file;	    memcpy(image->data[0], image->data[1], w*h);	    memcpy(image->data[0], image->data[2], w*h);	} else {	    	}    }        return image;      short_file:    sprintf(RErrorString, "PPM file \"%s\" seems to be truncated", file_name);    return NULL;}