summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 93911c98..b0834531 100644
--- a/main.cpp
+++ b/main.cpp
@@ -162,7 +162,7 @@ int main(int argc,char **argv)
mkdir(homeDir,0755); // will fail if it already exists
{
char pidpath[4096];
- Utils::snrpintf(pidpath,sizeof(pidpath),"%s/zerotier-one.pid",homeDir);
+ Utils::snprintf(pidpath,sizeof(pidpath),"%s/zerotier-one.pid",homeDir);
FILE *pf = fopen(pidpath,"w");
if (pf) {
fprintf(pf,"%ld",(long)getpid());
@@ -192,7 +192,7 @@ int main(int argc,char **argv)
#ifdef __UNIX_LIKE__
{
char pidpath[4096];
- Utils::snrpintf(pidpath,sizeof(pidpath),"%s/zerotier-one.pid",homeDir);
+ Utils::snprintf(pidpath,sizeof(pidpath),"%s/zerotier-one.pid",homeDir);
Utils::rm(pidpath);
}
#endif