summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gramscii.c2
-rw-r--r--screen.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gramscii.c b/gramscii.c
index 8b84ec3..ba4d7e2 100644
--- a/gramscii.c
+++ b/gramscii.c
@@ -147,7 +147,7 @@ void commands(FILE *fc){
void usage(){
fprintf(stderr, "Usage: %s [-s] [-h] [file ...]\n", argv0);
- cleanup(1);
+ exit(1);
}
diff --git a/screen.c b/screen.c
index 5ea21aa..d60abb2 100644
--- a/screen.c
+++ b/screen.c
@@ -421,7 +421,7 @@ void init_screen(){
screen.sz = HEIGHT;
screen.num = HEIGHT;
if (screen.l == NULL){
- perror("allocating screen");
+ fprintf(stderr, "Error allocating screen");
cleanup(1);
}
for (i=0; i<HEIGHT; i++){