mirror of
https://github.com/a0rtega/pafish
synced 2024-11-25 07:40:56 +03:00
Minor change in common.c (sizeof by one)
This commit is contained in:
parent
591b998e9c
commit
9e0128cf73
@ -46,7 +46,7 @@ void print_suspicious() {
|
||||
void write_log(char msg[]) {
|
||||
FILE *log;
|
||||
char logstr[1024];
|
||||
snprintf(logstr, sizeof(logstr), "\n[pafish] %s", msg);
|
||||
snprintf(logstr, sizeof(logstr)-sizeof(logstr[0]), "\n[pafish] %s", msg);
|
||||
log = fopen("pafish.log", "a");
|
||||
fputs(logstr, log);
|
||||
fclose(log);
|
||||
|
Loading…
Reference in New Issue
Block a user