about summary refs log tree commit diff
path: root/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'url.c')
-rw-r--r--url.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/url.c b/url.c
index bf3d948..43c2ee9 100644
--- a/url.c
+++ b/url.c
@@ -107,8 +107,8 @@ static void urlOpen(const char *url) {
 	if (pid) return;
 
 	close(STDIN_FILENO);
-	dup2(procPipe[1], STDOUT_FILENO);
-	dup2(procPipe[1], STDERR_FILENO);
+	dup2(utilPipe[1], STDOUT_FILENO);
+	dup2(utilPipe[1], STDERR_FILENO);
 	if (urlOpenUtil.argc) {
 		struct Util util = urlOpenUtil;
 		utilPush(&util, url);
@@ -156,8 +156,8 @@ static void urlCopy(const char *url) {
 	}
 
 	dup2(rw[0], STDIN_FILENO);
-	dup2(procPipe[1], STDOUT_FILENO);
-	dup2(procPipe[1], STDERR_FILENO);
+	dup2(utilPipe[1], STDOUT_FILENO);
+	dup2(utilPipe[1], STDERR_FILENO);
 	close(rw[0]);
 	if (urlCopyUtil.argc) {
 		execvp(urlCopyUtil.argv[0], (char *const *)urlCopyUtil.argv);