changeset 35634:b98a97813f10

Use sizeof() instead of numeric constant.
author ib
date Thu, 10 Jan 2013 12:23:17 +0000
parents be047c67cb96
children ac2a7944829c
files gui/wm/ws.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Thu Jan 10 12:21:19 2013 +0000
+++ b/gui/wm/ws.c	Thu Jan 10 12:23:17 2013 +0000
@@ -195,7 +195,7 @@
 {
     char type[128];
 
-    XGetErrorText(display, event->error_code, type, 128);
+    XGetErrorText(display, event->error_code, type, sizeof(type));
 
     fprintf(stderr, "[ws] Error in display.\n");
     fprintf(stderr, "[ws]  Error code: %d ( %s )\n", event->error_code, type);