Fix a few build issues seen by various compilers

that I have on my system but haven't used for a while
(a couple of warnings and a couple of errors)
This commit is contained in:
nethack.allison
2008-12-30 22:02:31 +00:00
parent b8ed7412dc
commit 76350a5348
4 changed files with 4 additions and 4 deletions

View File

@@ -440,7 +440,7 @@ struct obj *otmp;
/* XXX replace with more general substitution code and add local
* contact message. Also use DEVTEAM_URL */
if(junk[0]) == NULL){
if(junk[0] == NULL){
#define BUGS_FORMAT "Report bugs to %s."
junk[0] = (char *)alloc(strlen(BUGS_FORMAT) + strlen(DEVTEAM_EMAIL));
sprintf(junk[0], DEVTEAM_EMAIL);