Skip to content

Commit 6769a37

Browse files
authored
Merge pull request #30 from mw75/master
fixed #24
2 parents bbfd33e + a17daff commit 6769a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mail.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void write_header(int fd, const char *dest, const char *command,
5050
fd_nprintf(fd, 500, "To: %s\n", dest);
5151
fd_nprintf(fd, 500, "Subject: the task %i finished with error %i. \n", jobid,
5252
errorlevel);
53-
fd_nprintf(fd, 500, "\nCommand: %s\n", command);
53+
fd_nprintf(fd, 12+(int)strlen(command), "\nCommand: %s\n", command);
5454
fd_nprintf(fd, 500, "Output:\n");
5555
}
5656

0 commit comments

Comments
 (0)