internal: fix usage of execlp in clipboard::copy

fixes #42
This commit is contained in:
vaxerski 2023-10-05 11:49:44 +01:00
parent 5ba3268694
commit 7e1765f9f3

View file

@ -13,6 +13,7 @@ void Clipboard::copy(const char* fmt, ...) {
outputStr = strdup(buf); outputStr = strdup(buf);
if (fork() == 0)
execlp("wl-copy", "wl-copy", outputStr, NULL); execlp("wl-copy", "wl-copy", outputStr, NULL);
free(outputStr); free(outputStr);