projects
/
rogue-pphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
abort declaration is not just implicit but incompatibly implicit, so make it explicit.
[rogue-pphs.git]
/
main.c
diff --git
a/main.c
b/main.c
index
32fdbd0
..
59240e0
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