X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=main.c;h=59240e017048a1901b5e8bbb218ee1b136fad596;hp=32fdbd036bccaf45be36d79aca39010be921daeb;hb=871d48020c1bae22e603e5c8771d9b7468c894c1;hpb=a868f7779583a00316cb076fc4d62ccfb1488434 diff --git a/main.c b/main.c index 32fdbd0..59240e0 100644 --- a/main.c +++ b/main.c @@ -58,7 +58,7 @@ char **envp; /* * get home and options from environment */ - strncpy(home, md_gethomedir(), PATH_MAX); + strncpy(home, md_gethomedir(), sizeof(home) - 1); strcpy(file_name, home); strcat(file_name, "rogue36.sav");