summaryrefslogtreecommitdiff
path: root/components/run_command.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/run_command.c')
-rw-r--r--components/run_command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/run_command.c b/components/run_command.c
index 1aaae20..b5eeff0 100644
--- a/components/run_command.c
+++ b/components/run_command.c
@@ -12,7 +12,7 @@ run_command(const char *cmd)
FILE *fp;
if (!(fp = popen(cmd, "r"))) {
- fprintf(stderr, "popen '%s': %s\n", cmd, strerror(errno));
+ warn("popen '%s':", cmd);
return NULL;
}
p = fgets(buf, sizeof(buf) - 1, fp);