From 1072eb35969164b1405d7ae68dda4997f51c045d Mon Sep 17 00:00:00 2001 From: gotmor Date: Sun, 24 Jun 2007 07:31:02 +0000 Subject: fix add_option, thanks Alexander V. Inyukhin git-svn-id: http://dzen.googlecode.com/svn/trunk@110 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- action.c | 1 + 1 file changed, 1 insertion(+) (limited to 'action.c') diff --git a/action.c b/action.c index 789015e..3d5fcb0 100644 --- a/action.c +++ b/action.c @@ -106,6 +106,7 @@ add_option(long evid, int hpos, int opos, char* opt) { while(item) { if(item->id == evid) { item->action[hpos]->options[opos] = estrdup(opt); + item->action[hpos]->options[opos+1] = NULL; break; } item = item->next; -- cgit v1.2.3-54-g00ecf