mirror of
https://github.com/0intro/wmii
synced 2025-02-07 18:04:54 +03:00
allowing to write 0 to /def/colwidth
This commit is contained in:
parent
ca7547d056
commit
2007eebaae
@ -1409,8 +1409,8 @@ xwrite(IXPConn *c, Fcall *fcall)
|
||||
return Ebadvalue;
|
||||
memcpy(buf, fcall->data, fcall->count);
|
||||
buf[fcall->count] = 0;
|
||||
i = cext_strtonum(buf, MIN_COLWIDTH, rect.width - MIN_COLWIDTH, &err);
|
||||
if(err)
|
||||
i = cext_strtonum(buf, 0, rect.width - MIN_COLWIDTH, &err);
|
||||
if(err || (i && i < MIN_COLWIDTH))
|
||||
return Ebadvalue;
|
||||
def.colw = i;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user