From 66b729b284aa08ee7969932a7cab3ea4795fce09 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 23 May 2011 21:03:06 +0000 Subject: [PATCH] * cygtls.h (strerror_buf): Resize to allow '-'. --- winsup/cygwin/ChangeLog | 1 + winsup/cygwin/cygtls.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 35b7eea7e..f1c058220 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -2,6 +2,7 @@ * errno.cc (strerror): Print unknown errno as int. (__xpg_strerror_r): Likewise, and don't clobber strerror buffer. + * cygtls.h (strerror_buf): Resize to allow '-'. 2011-05-23 Corinna Vinschen diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h index 4d4306b33..6359e7c5f 100644 --- a/winsup/cygwin/cygtls.h +++ b/winsup/cygwin/cygtls.h @@ -108,8 +108,8 @@ struct _local_storage HANDLE *w4; // note: malloced } select; - /* strerror */ - char strerror_buf[sizeof ("Unknown error 4294967295")]; + /* strerror errno.cc */ + char strerror_buf[sizeof ("Unknown error -2147483648")]; /* times.cc */ char timezone_buf[20];