summaryrefslogtreecommitdiff
path: root/gdb/posix-hdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/posix-hdep.c')
-rw-r--r--gdb/posix-hdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/posix-hdep.c b/gdb/posix-hdep.c
index ac6c7b2c4f8..bcc1dee02ec 100644
--- a/gdb/posix-hdep.c
+++ b/gdb/posix-hdep.c
@@ -37,6 +37,7 @@ safe_strerror (int errnum)
if (msg == NULL)
{
static char buf[32];
+
xsnprintf (buf, sizeof buf, "(undocumented errno %d)", errnum);
msg = buf;
}