summaryrefslogtreecommitdiff
path: root/games/openmortal/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'games/openmortal/patches/patch-aa')
-rw-r--r--games/openmortal/patches/patch-aa15
1 files changed, 1 insertions, 14 deletions
diff --git a/games/openmortal/patches/patch-aa b/games/openmortal/patches/patch-aa
index 963d3dd4098..03afb515f5c 100644
--- a/games/openmortal/patches/patch-aa
+++ b/games/openmortal/patches/patch-aa
@@ -1,20 +1,7 @@
-$NetBSD: patch-aa,v 1.2 2004/03/06 17:32:11 xtraeme Exp $
+$NetBSD: patch-aa,v 1.3 2010/07/02 16:48:54 joerg Exp $
--- src/State.cpp.orig 2004-03-06 18:20:58.000000000 +0100
+++ src/State.cpp 2004-03-06 18:22:07.000000000 +0100
-@@ -151,10 +151,10 @@
- debug( "GetUserName failed: %d.\n", iResult );
- }
- #else
-- int iResult = getlogin_r( m_acNick, 127 );
-+ int iResult = (int)getlogin();
- if ( iResult )
- {
-- debug( "getlogin_r failed: %d\n", iResult );
-+ debug( "getlogin failed: %d\n", iResult );
- strcpy( m_acNick, getenv("USER") );
- }
- #endif
@@ -273,7 +273,11 @@
void SState::Save()
{