X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=main.c;h=f3626d8a58118e8234e3ab818f59cde4317d5022;hp=32fdbd036bccaf45be36d79aca39010be921daeb;hb=HEAD;hpb=a868f7779583a00316cb076fc4d62ccfb1488434 diff --git a/main.c b/main.c index 32fdbd0..f3626d8 100644 --- a/main.c +++ b/main.c @@ -1,7 +1,7 @@ /* * @(#)main.c 3.27 (Berkeley) 6/15/81 * - * Rogue: Exploring the Dungeons of Doom + * Rogue: Exploring the Cavern of Cuties * Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman * All rights reserved. * @@ -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 cavern #%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 create the cavern...\n", whoami); fflush(stdout); seed = dnum; init_player(); /* Roll up the rogue */