mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-05-24 21:15:31 +00:00
Increase PID string length
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user