blob: 8ad7232f129f9e8add60ab4302d2da6092d93e3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-aa,v 1.2 2001/05/14 17:09:14 rh Exp $
--- source/cddb.c.orig Sun May 6 18:16:33 2001
+++ source/cddb.c
@@ -200,7 +200,12 @@
return -1;
}
+#ifdef HAVE_STRERROR_R
strerror_r(rc, message, 64);
+#else
+ strncpy (message, strerror (rc), 64);
+ message[63]='\0';
+#endif
fputs("Error invoking pthread_create: ", stderr);
fputs(message, stderr);
fputc('\n', stderr);
|