Code

plugin: show plugin error messages on the screen
[ncmpc.git] / src / plugin.c
index 0aa13b5c10c9a98ac8c4f6b1e9346d50a790cdf1..88cc305044737d3ed0680588c40e230476dfa277 100644 (file)
@@ -222,7 +222,7 @@ start_plugin(struct plugin_cycle *cycle, const char *plugin_path)
 
        if (pid == 0) {
                dup2(fds[1], 1);
-               dup2(fds[1], 1);
+               dup2(fds[1], 2);
                close(fds[0]);
                close(fds[1]);
                close(0);