projects
/
rogue-pphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1981 C really sucked.
[rogue-pphs.git]
/
main.c
diff --git
a/main.c
b/main.c
index
32fdbd0
..
7e27bd3
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-58,7
+58,7
@@
char **envp;
/*
\r
* get home and options from environment
\r
*/
\r
/*
\r
* get home and options from environment
\r
*/
\r
- strncpy(home, md_gethomedir(),
PATH_MAX
);
\r
+ strncpy(home, md_gethomedir(),
sizeof(home) - 1
);
\r
\r
strcpy(file_name, home);
\r
strcat(file_name, "rogue36.sav");
\r
\r
strcpy(file_name, home);
\r
strcat(file_name, "rogue36.sav");
\r
@@
-88,9
+88,9
@@
char **envp;
atoi(getenv("SEED")) :
\r
lowtime + getpid());
\r
if (wizard)
\r
atoi(getenv("SEED")) :
\r
lowtime + getpid());
\r
if (wizard)
\r
- printf("Hello %s, welcome to dungeon #%d", whoami, dnum);
\r
+ printf("Hello %s, welcome to dungeon #%d
\n
", whoami, dnum);
\r
else
\r
else
\r
- printf("Hello %s, just a moment while I dig the dungeon...", whoami);
\r
+ printf("Hello %s, just a moment while I dig the dungeon...
\n
", whoami);
\r
fflush(stdout);
\r
seed = dnum;
\r
init_player(); /* Roll up the rogue */
\r
fflush(stdout);
\r
seed = dnum;
\r
init_player(); /* Roll up the rogue */
\r