projects
/
my-code
/
api.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
corrected stderr output
[my-code/api.git]
/
display
/
display.c
diff --git
a/display/display.c
b/display/display.c
index
cf09a93
..
178ec62
100644
(file)
--- a/
display/display.c
+++ b/
display/display.c
@@
-24,7
+24,7
@@
int display_init(t_display *display) {
,ws.ws_col,ws.ws_row);
/* allocating 'screen' buffer */
,ws.ws_col,ws.ws_row);
/* allocating 'screen' buffer */
- if((display->screen=(
unsigned
char *)malloc(display->max_x*display->max_y))
+ if((display->screen=(char *)malloc(display->max_x*display->max_y))
==NULL) {
perror("[display] malloc call");
return D_ERROR;
==NULL) {
perror("[display] malloc call");
return D_ERROR;
@@
-110,7
+110,7
@@
int display_shutdown(t_display *display) {
free(display->screen);
free(display->screen);
- fprintf(stderr,"[display] shutdown");
+ fprintf(stderr,"[display] shutdown
\n
");
return D_SUCCESS;
}
return D_SUCCESS;
}