summaryrefslogtreecommitdiffstats
path: root/sail/dr_1.c
diff options
context:
space:
mode:
Diffstat (limited to 'sail/dr_1.c')
-rw-r--r--sail/dr_1.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/sail/dr_1.c b/sail/dr_1.c
index f2a5c8a1..69ca2d30 100644
--- a/sail/dr_1.c
+++ b/sail/dr_1.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dr_1.c,v 1.8 1999/02/10 00:45:45 hubertf Exp $ */
+/* $NetBSD: dr_1.c,v 1.9 1999/09/08 21:17:58 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)dr_1.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dr_1.c,v 1.8 1999/02/10 00:45:45 hubertf Exp $");
+__RCSID("$NetBSD: dr_1.c,v 1.9 1999/09/08 21:17:58 jsm Exp $");
#endif
#endif /* not lint */
@@ -421,11 +421,15 @@ next()
}
}
if (best > 0.0) {
- char *p = getenv("WOTD");
- if (p == 0)
+ char *tp = getenv("WOTD");
+ const char *p;
+ if (tp == 0)
p = "Driver";
- if (islower(*p))
- *p = toupper(*p);
+ else {
+ if (islower(*tp))
+ *tp = toupper(*tp);
+ p = tp;
+ }
(void) strncpy(bestship->file->captain, p,
sizeof bestship->file->captain);
bestship->file->captain