From 75bb6ee2385c0daf115e2de816b72656dfa95319 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 7 Sep 2007 00:09:56 +0200 Subject: [PATCH] bug fix, size of prop was not good --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 2a7f7e6f6..1f5ce9b98 100644 --- a/client.c +++ b/client.c @@ -314,7 +314,7 @@ loadprops(Client * c, int ntags) prop = p_new(char, ntags + 2); - if(gettextprop(c->display, c->win, jdwmprops, prop, sizeof(prop))) + if(gettextprop(c->display, c->win, jdwmprops, prop, ntags + 2)) { for(i = 0; i < ntags && prop[i]; i++) if((c->tags[i] = prop[i] == '1'))