config.h: rename SCREENSHOT to SCRSHOT
authorAli Gholami Rudi <ali@rudi.ir>
Fri, 4 Nov 2011 13:56:09 +0000 (4 17:26 +0330)
committerAli Gholami Rudi <ali@rudi.ir>
Fri, 4 Nov 2011 13:56:09 +0000 (4 17:26 +0330)
config.h
term.c

index ede247e..4c66fd0 100644 (file)
--- a/config.h
+++ b/config.h
@@ -34,7 +34,7 @@
 #define COLOR15                0xdedede
 
 /* where to write the screen shot */
-#define SCREENSHOT     "/tmp/scr"
+#define SCRSHOT                "/tmp/scr"
 
 /* framebuffer depth */
 typedef unsigned int fbval_t;
diff --git a/term.c b/term.c
index 7869ab1..4a43ee1 100644 (file)
--- a/term.c
+++ b/term.c
@@ -401,7 +401,7 @@ static int writeutf8(char *dst, int c)
 void term_screenshot(void)
 {
        char buf[1 << 11];
-       int fd = open(SCREENSHOT, O_CREAT | O_TRUNC | O_WRONLY, 0600);
+       int fd = open(SCRSHOT, O_CREAT | O_TRUNC | O_WRONLY, 0600);
        int i, j;
        for (i = 0; i < pad_rows(); i++) {
                char *s = buf;