Increase PID string length

This commit is contained in:
Anon2026
2026-01-15 23:01:50 +03:00
parent 68c6852029
commit e893036a0b
+2 -2
View File
@@ -178,8 +178,8 @@ namespace i2p
return false;
}
char pid[10];
sprintf(pid, "%d\n", getpid());
char pid[16];
snprintf(pid, 16, "%d\n", getpid());
ftruncate(pidFH, 0);
if (write(pidFH, pid, strlen(pid)) < 0)
{