aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2009-03-11 05:15:19 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2009-03-11 05:15:19 +0000
commit4b80e95b7efcff228fcad31de5ab17ca96c5e892 (patch)
tree740b3aa632d513423411c3cd2eee2712b247e875
parente4a530c5288f7f21c0a40cfefc5f93fe44e3d994 (diff)
downloaddzen-4b80e95b7efcff228fcad31de5ab17ca96c5e892.tar.gz
dzen-4b80e95b7efcff228fcad31de5ab17ca96c5e892.zip
get_sens_areas: initialize cmd array to 0 before applying sscanf
git-svn-id: http://dzen.googlecode.com/svn/trunk@258 f2baff5b-bf2c-0410-a398-912abdc3d8b2
-rw-r--r--draw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/draw.c b/draw.c
index c53b9fe..736d59e 100644
--- a/draw.c
+++ b/draw.c
@@ -217,6 +217,7 @@ 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);
return 0;