diff options
author | Christopher Faylor <me@cgf.cx> | 2009-08-04 04:31:08 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-08-04 04:31:08 +0000 |
commit | 3b689b97bdf13354ab88583507e100d183d3fddf (patch) | |
tree | d78f815c134b9a461290b4afd616bba20ee02afb /winsup/cygwin/fhandler.h | |
parent | 824d851859450e8c3943d0439fc57a3520081eb4 (diff) | |
download | cygnal-3b689b97bdf13354ab88583507e100d183d3fddf.tar.gz cygnal-3b689b97bdf13354ab88583507e100d183d3fddf.tar.bz2 cygnal-3b689b97bdf13354ab88583507e100d183d3fddf.zip |
* fhandler.h (pdrive_buf): Defensively allocate one extra byte.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r-- | winsup/cygwin/fhandler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 87ae390d7..f661fc01f 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -759,7 +759,7 @@ class fhandler_cygdrive: public fhandler_disk_file }; int ndrives; const char *pdrive; - char pdrive_buf[2 * 26 * DRVSZ]; + char pdrive_buf[1 + (2 * 26 * DRVSZ)]; void set_drives (); public: fhandler_cygdrive (); |