X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fposix-hdep.c;h=1a41e85800a79e3861bb5125e64177f46b76ff8a;hb=621661e3faf809d4f28bb84e94e30c1c8a8cc933;hp=ac6c7b2c4f85dbfabeb4c69c9cd0f7eea9c2d64e;hpb=4c38e0a4fcb69f8586d8db0b9cdb8dbab5980811;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/posix-hdep.c b/gdb/posix-hdep.c index ac6c7b2c4f..1a41e85800 100644 --- a/gdb/posix-hdep.c +++ b/gdb/posix-hdep.c @@ -1,6 +1,6 @@ /* Host support routines for MinGW, for GDB, the GNU debugger. - Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2006-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -20,13 +20,11 @@ #include "defs.h" #include "event-loop.h" -#include "gdb_string.h" - #include "gdb_select.h" /* The strerror() function can return NULL for errno values that are out of range. Provide a "safe" version that always returns a - printable string. */ + printable string. */ char * safe_strerror (int errnum) @@ -37,6 +35,7 @@ safe_strerror (int errnum) if (msg == NULL) { static char buf[32]; + xsnprintf (buf, sizeof buf, "(undocumented errno %d)", errnum); msg = buf; }