summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-04-22 15:21:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-04-22 15:21:41 +0200
commit88f13b1b296218589a44dac227964a8a47a75e50 (patch)
tree01a19ab89e62c0fd7da9c34918e32c0010f9eed1 /menu.c
parentc32864756051a976e87879cd5827f4d95b5d55d5 (diff)
downloadvdr-88f13b1b296218589a44dac227964a8a47a75e50.tar.gz
vdr-88f13b1b296218589a44dac227964a8a47a75e50.tar.bz2
Added 'const' to please compiler
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 1d94344e..6bbade8c 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'osm.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.4 2000/04/16 15:45:44 kls Exp $
+ * $Id: menu.c 1.5 2000/04/22 15:21:08 kls Exp $
*/
#include "menu.h"
@@ -428,7 +428,7 @@ void cMenuEditStrItem::Set(void)
char buf[1000];
if (pos >= 0) {
strncpy(buf, value, pos);
- char *s = value[pos] != ' ' ? value + pos + 1 : "";
+ const char *s = value[pos] != ' ' ? value + pos + 1 : "";
snprintf(buf + pos, sizeof(buf) - pos - 2, "[%c]%s", *(value + pos), s);
SetValue(buf);
}