blob: 20925c76bf7a45148d7adc6cc4a559d385e5146f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- pine/osdep/err_desc.orig Sat Jul 18 22:22:47 1998
+++ pine/osdep/err_desc Sat Jul 18 22:23:08 1998
@@ -11,10 +11,7 @@
{
static char buffer[50+1];
- if(errnumber >= 0 && errnumber < sys_nerr)
- sprintf(buffer, "%.*s", 50, sys_errlist[errnumber]);
- else
- sprintf(buffer, "Unknown error #%d", errnumber);
+ sprintf(buffer, "%.*s", 50, strerror(errnumber));
return ( (char *) buffer);
}
|