From: Christophe CURIS <[email protected]>

Signed-off-by: Christophe CURIS <[email protected]>
---
 src/misc.c |    6 +++---
 src/misc.h |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/misc.c b/src/misc.c
index 0765612..018aa25 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -733,16 +733,16 @@ static char *keysymToString(KeySym keysym, unsigned int 
state)
 }
 #endif
 
-char *GetShortcutString(char *text)
+char *GetShortcutString(const char *shortcut)
 {
        char *buffer = NULL;
        char *k;
        int modmask = 0;
        /*    KeySym ksym; */
        int control = 0;
-       char *tmp;
+       char *tmp, *text;
 
-       tmp = text = wstrdup(text);
+       tmp = text = wstrdup(shortcut);
 
        /* get modifiers */
        while ((k = strchr(text, '+')) != NULL) {
diff --git a/src/misc.h b/src/misc.h
index 7f199d8..1d5479d 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -38,7 +38,7 @@ void SendHelperMessage(WScreen * scr, char type, int 
workspace, char *msg);
 char *ShrinkString(WMFont * font, const char *string, int width);
 char *FindImage(char *paths, char *file);
 char *ExpandOptions(WScreen * scr, char *cmdline);
-char *GetShortcutString(char *text);
+char *GetShortcutString(const char *text);
 char *GetShortcutKey(WShortKey key);
 char *EscapeWM_CLASS(char *name, char *class);
 char *StrConcatDot(char *a, char *b);
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to