- Timestamp:
- Jan 2, 2004, 4:23:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/examples/cacaview.c
r299 r302 268 268 else if(!pixels) 269 269 { 270 #if defined(HAVE_IMLIB2_H) 271 # define ERROR_STRING " Error loading `%s'. " 272 #else 273 # define ERROR_STRING " Error loading `%s'. Only BMP is supported. " 274 #endif 270 275 char *buffer; 271 int len = strlen( " Error loading `%s'. ") + strlen(list[current]);276 int len = strlen(ERROR_STRING) + strlen(list[current]); 272 277 273 278 if(len < ww + 1) … … 276 281 buffer = malloc(len); 277 282 278 sprintf(buffer, " Error loading `%s'. ", list[current]);283 sprintf(buffer, ERROR_STRING, list[current]); 279 284 buffer[ww] = '\0'; 280 285 caca_set_color(CACA_COLOR_WHITE, CACA_COLOR_BLUE);
Note: See TracChangeset
for help on using the changeset viewer.