diff options
author | Wynn Wolf Arbor | 2020-03-18 19:46:53 +0100 |
---|---|---|
committer | Wolfgang Müller | 2021-04-27 12:28:35 +0200 |
commit | c0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9 (patch) | |
tree | 953c484d4a75cfcff94bdb3184b33136ef72ea4f /util.c | |
parent | 26a8c6ced076b6a49b130deb4fe35d6707bebbae (diff) | |
download | cwm-c0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9.tar.gz |
Remove wm menu
Whilst arguably useful for certain people, or in rare cases, this
functionality is not needed in the general case.
This will also remove a memory leak where fallback was not properly
freed.
Diffstat (limited to '')
-rw-r--r-- | util.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -84,30 +84,6 @@ u_exec(char *argstr) warn("%s", s); } -char * -u_argv(char * const *argv) -{ - size_t siz = 0; - int i; - char *p; - - if (argv == 0) - return NULL; - - for (i = 0; argv[i]; i++) - siz += strlen(argv[i]) + 1; - if (siz == 0) - return NULL; - - p = xmalloc(siz); - strlcpy(p, argv[0], siz); - for (i = 1; argv[i]; i++) { - strlcat(p, " ", siz); - strlcat(p, argv[i], siz); - } - return p; -} - static void log_msg(const char *msg, va_list ap) { |