# HG changeset patch # User ib # Date 1357820597 0 # Node ID b98a97813f10555bc27171705c5999e1e7d25d8c # Parent be047c67cb96306d4c72766d6c4230bdab15090e Use sizeof() instead of numeric constant. diff -r be047c67cb96 -r b98a97813f10 gui/wm/ws.c --- 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);