diff --git a/libsrc/common/perror.c b/libsrc/common/perror.c index 9edc08f6e..ddc015c1e 100644 --- a/libsrc/common/perror.c +++ b/libsrc/common/perror.c @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998-2003 Ullrich von Bassewitz */ -/* Römerstrasse 52 */ -/* D-70794 Filderstadt */ -/* EMail: uz@cc65.org */ +/* (C) 1998-2010, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -42,7 +42,7 @@ void __fastcall__ perror (const char* msg) { /* Fetch the message that corresponds to errno */ - const char* errormsg = strerror (errno); + const char* errormsg = strerror (_errno); /* Different output depending on msg */ if (msg) {