summaryrefslogtreecommitdiff
path: root/games/abuse/patches/patch-al
diff options
context:
space:
mode:
Diffstat (limited to 'games/abuse/patches/patch-al')
-rw-r--r--games/abuse/patches/patch-al13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/abuse/patches/patch-al b/games/abuse/patches/patch-al
new file mode 100644
index 00000000000..56e951d64c0
--- /dev/null
+++ b/games/abuse/patches/patch-al
@@ -0,0 +1,13 @@
+$NetBSD: patch-al,v 1.1 2002/07/16 14:26:21 agc Exp $
+
+--- abuse/src/view.c 2002/07/16 14:15:54 1.1
++++ abuse/src/view.c 2002/07/16 14:16:23
+@@ -179,7 +179,7 @@
+
+ #else
+ char *get_login()
+-{ if (cur_user_name[0]) return cur_user_name; else return (getlogin() ? getlogin() : "unknown"); }
++{ char *unknown = "unknown"; if (cur_user_name[0]) return cur_user_name; else return (getlogin() ? getlogin() : unknown); }
+
+ #endif
+