diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2010-06-13 16:40:14 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2010-06-13 16:40:14 +0000 |
commit | eb0914e20b1fa429c05c3bab55f2e28864ef2b27 (patch) | |
tree | 975299b92ca9d57d5eeb94151b266db4e23592f9 /draw.c | |
parent | db58aac6a88f369fc109005548ad9170ee8b7720 (diff) | |
download | dzen-eb0914e20b1fa429c05c3bab55f2e28864ef2b27.tar.gz dzen-eb0914e20b1fa429c05c3bab55f2e28864ef2b27.zip |
fix parsing in ^ca(), thanks to Michael Stapelberg
git-svn-id: http://dzen.googlecode.com/svn/trunk@269 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -218,7 +218,10 @@ setcolor(Drawable *pm, int x, int width, long tfg, long tbg, int reverse, int no int get_sens_area(char *s, int *b, char *cmd) { memset(cmd, 0, 1024); - sscanf(s, "%5d,%1024c", b, cmd); + sscanf(s, "%5d", b); + char *comma = strchr(s, ','); + if (comma != NULL) + strncpy(cmd, comma+1, 1024); return 0; } |