X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=main.c;h=59240e017048a1901b5e8bbb218ee1b136fad596;hp=32fdbd036bccaf45be36d79aca39010be921daeb;hb=5b5f1f3eee71701d67c3ac4cc032c574423a5197;hpb=9653f9978fe3bb3ee1560e4c80c457095419474c 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");