mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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’.
This commit is contained in:
parent
7632e16e36
commit
42ec264075
5 changed files with 56 additions and 38 deletions
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
bool tokenize_cmdline(char *cmdline, char ***argv);
|
||||
bool tokenize_cmdline(const char *cmdline, char ***argv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue