[MPlayer-cvslog] r35728 - trunk/gui/wm/ws.c

ib subversion at mplayerhq.hu
Thu Jan 10 13:23:17 CET 2013


Author: ib
Date: Thu Jan 10 13:23:17 2013
New Revision: 35728

Log:
Use sizeof() instead of numeric constant.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Thu Jan 10 13:21:19 2013	(r35727)
+++ trunk/gui/wm/ws.c	Thu Jan 10 13:23:17 2013	(r35728)
@@ -195,7 +195,7 @@ static int wsErrorHandler(Display *displ
 {
     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);


More information about the MPlayer-cvslog mailing list