aboutsummaryrefslogtreecommitdiff
path: root/tokenize.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-06-20 12:17:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-20 12:19:22 +0000
commit42ec2640753650c69385d86c2fbb386d23965c89 (patch)
treeb1397db5e2128d97d340260f732bf4b4edce9a1e /tokenize.h
parentconfig: remove duplicated error logs for invalid colors (diff)
tokenize: strdup() each individual argv
Instead of referencing the un-tokenized “raw” command string, strdup() each argv. This way, the input string can be ‘const’.
Diffstat (limited to 'tokenize.h')
-rw-r--r--tokenize.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokenize.h b/tokenize.h
index f9579255..9e5de6c9 100644
--- a/tokenize.h
+++ b/tokenize.h
@@ -2,4 +2,4 @@
#include <stdbool.h>
-bool tokenize_cmdline(char *cmdline, char ***argv);
+bool tokenize_cmdline(const char *cmdline, char ***argv);