Fixed some magic numbers to sizeof.
authorviric@llimona
Sun, 23 Sep 2007 23:43:49 +0200
changeset 35 69dbea6c3882
parent 34 7486e269b794
child 36 da427c23d755
Fixed some magic numbers to sizeof.
xterm.c
--- a/xterm.c	Sun Sep 23 23:40:36 2007 +0200
+++ b/xterm.c	Sun Sep 23 23:43:49 2007 +0200
@@ -17,7 +17,8 @@
     cols = win.ws_col;
 
     /* Prepare the xterm resize string */
-    snprintf(xterm_resize_string, 100, "\033[8;%i;%it", rows, cols);
+    snprintf(xterm_resize_string, sizeof xterm_resize_string,
+            "\033[8;%i;%it", rows, cols);
 
     return xterm_resize_string;
 }