* fhandler.h (pdrive_buf): Defensively allocate one extra byte.

This commit is contained in:
Christopher Faylor 2009-08-04 04:31:08 +00:00
parent 824d851859
commit 3b689b97bd
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-08-04 Christopher Faylor <me+cygwin@cgf.cx>
* fhandler.h (pdrive_buf): Defensively allocate one extra byte.
2009-08-04 Christopher Faylor <me+cygwin@cgf.cx>
* fhandler.h (fhandler_cygdrive:DRVSZ): New enum.

View File

@ -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 ();