summaryrefslogtreecommitdiff
path: root/editors/pico/patches/patch-ab
blob: 109e6a861224a57a894c75a23bb249f63b9adbe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ab,v 1.9 2003/07/28 14:35:34 adam Exp $

--- pico/osdep/unix.orig	2003-05-28 00:56:45.000000000 +0200
+++ pico/osdep/unix	2003-07-28 13:49:18.000000000 +0200
@@ -2654,7 +2654,7 @@
 errstr(err)
 int err;
 {
-    return((err >= 0 && err < sys_nerr) ? (char *)sys_errlist[err] : NULL);
+    return strerror(err);
 }