Dear Maintainer,
Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
aux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/aux.c b/aux.c
index 0a35174..f5c3a87 100644
--- a/aux.c
+++ b/aux.c
@@ -616,7 +616,7 @@ aux.c:...: warning: the address of 'fname' will always evaluate as 'true'
temp_file, final);
system(buf);
if (mailer_pipe_input) {
- sprintf(buf, "%s < %s", mailer_program, final);
+ snprintf(buf, NBUF, "%s < %s", mailer_program, final);
x = system(buf);
} else {
strncpy(buf, mailer_program, 50);
@@ -683,7 +683,7 @@ aux.c:...: warning: the address of 'fname' will always evaluate as 'true'
fprintf(rec, "From %s %s", logname, ctime(&t));
fprintf(rec, "From: %s\n", logname);
fclose(rec);
- sprintf(buf, "cat %s >> %s", temp_file, record);
+ snprintf(buf, NBUF, "cat %s >> %s", temp_file, record);
system(buf);
}
}