about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 5f7619c79..19d022c1e 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -3611,7 +3611,9 @@ getkeystring(char *s, int *len, int fromwhere, int *misc)
 	    case 'c':
 		if (fromwhere < 2) {
 		    *misc = 1;
-		    break;
+		    *t = '\0';
+		    *len = t - buf;
+		    return buf;
 		}
 		goto def;
 	    case 'u':