diff options
author | phintuka <phintuka> | 2007-03-14 11:52:01 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-03-14 11:52:01 +0000 |
commit | 46390cc255e89194140ef9a113ee6ce0771402fb (patch) | |
tree | 9269129e60a78d4fed247dea3fea02095f9ceb15 | |
parent | 46e105a7b03a220fe791e4507f081cc29c375f0f (diff) | |
download | xineliboutput-46390cc255e89194140ef9a113ee6ce0771402fb.tar.gz xineliboutput-46390cc255e89194140ef9a113ee6ce0771402fb.tar.bz2 |
Force string termination
-rw-r--r-- | menuitems.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/menuitems.c b/menuitems.c index c11032af..e724febd 100644 --- a/menuitems.c +++ b/menuitems.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: menuitems.c,v 1.4 2006-11-05 16:37:10 phintuka Exp $ + * $Id: menuitems.c,v 1.5 2007-03-14 11:52:01 phintuka Exp $ * */ @@ -42,6 +42,7 @@ void cMenuEditTypedIntItem::Set(void) SetValue(maxString); else { snprintf(buf, sizeof(buf), "%d %s", *value, type); + buf[sizeof(buf)-1] = 0; SetValue(buf); } } |