X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=main.c;h=7e27bd3707f995d522977833ff6162348b05513e;hp=32fdbd036bccaf45be36d79aca39010be921daeb;hb=efb1335002efedd46b532a3e1daf6f390a20cce7;hpb=a868f7779583a00316cb076fc4d62ccfb1488434 diff --git a/main.c b/main.c index 32fdbd0..7e27bd3 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"); @@ -88,9 +88,9 @@ char **envp; atoi(getenv("SEED")) : lowtime + getpid()); if (wizard) - printf("Hello %s, welcome to dungeon #%d", whoami, dnum); + printf("Hello %s, welcome to dungeon #%d\n", whoami, dnum); else - printf("Hello %s, just a moment while I dig the dungeon...", whoami); + printf("Hello %s, just a moment while I dig the dungeon...\n", whoami); fflush(stdout); seed = dnum; init_player(); /* Roll up the rogue */