tidying: coverity issues
[exim.git] / src / exim_monitor / em_menu.c
index 9d3ca1c14fe8dbf2340994a3319069deac947804..af9ef37016258483e2c0ccd3a85ea6e3703a823b 100644 (file)
@@ -373,7 +373,7 @@ if ((pid = fork()) == 0)
 
 /* Main process - set up an item for the main ticker to watch. */
 
-if (pid < 0) text_showf(text, "Failed to fork: %s\n", strerror(pid)); else
+if (pid < 0) text_showf(text, "Failed to fork: %s\n", strerror(errno)); else
   {
   pipe_item *p = (pipe_item *)store_malloc(sizeof(pipe_item));