bug fix, size of prop was not good

This commit is contained in:
Julien Danjou 2007-09-07 00:09:56 +02:00
parent aa4177c2b1
commit 75bb6ee238
1 changed files with 1 additions and 1 deletions

View File

@ -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'))