aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-03-04 09:17:51 -0500
committeriamcheeseman <[email protected]>2026-03-04 09:20:46 -0500
commit3d115ae9e2bba84c44646bc323b3c1eba99ae2b1 (patch)
treeb0d7984384424e7c63a42a4588eee964890433ad /src
parentfc4c8df99e1733cbf9aab71ed98d1657282a435b (diff)
fix empty components
Diffstat (limited to 'src')
-rw-r--r--src/pipe.c6
-rw-r--r--src/tsarc.c2
2 files changed, 1 insertions, 7 deletions
diff --git a/src/pipe.c b/src/pipe.c
index bb18622..b5bbd08 100644
--- a/src/pipe.c
+++ b/src/pipe.c
@@ -42,15 +42,9 @@ void await_change(void) {
// octal 201 is an unused ascii character, so it's safe to use as a
// delimiter
if (chr == '\201') {
- if (chr_on == 0) {
- i++;
- continue;
- }
-
argv[argc][chr_on] = '\0';
argc++;
chr_on = 0;
-
} else {
argv[argc][chr_on] = chr;
chr_on++;
diff --git a/src/tsarc.c b/src/tsarc.c
index 27ab941..34bab18 100644
--- a/src/tsarc.c
+++ b/src/tsarc.c
@@ -140,7 +140,7 @@ int main(int argc, const char* argv[]) {
cmd_str[cmd_len-1] = '\n';
cmd_str[cmd_len] = '\0';
-
+
mkfifo(PIPE_PATH, 0666);
FILE* named_pipe = fopen(PIPE_PATH, "w");