From 0d8671a5ad040000541ebaa893582e520c7e33a3 Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Tue, 23 Jun 2009 16:29:32 +0100 Subject: declare buf only if XINERAMA support is used --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index e0a62862..896c8a7a 100644 --- a/dwm.c +++ b/dwm.c @@ -599,7 +599,6 @@ die(const char *errstr, ...) { void drawbar(Monitor *m) { - char buf[2]; int x; unsigned int i, occ = 0, urg = 0; unsigned long *col; @@ -616,6 +615,7 @@ drawbar(Monitor *m) { dc.x = 0; #ifdef XINERAMA { + char buf[2]; buf[0] = m->screen_number + '0'; buf[1] = '\0'; dc.w = TEXTW(buf); -- cgit v1.2.3