* fhandler.h (pdrive_buf): Defensively allocate one extra byte.
This commit is contained in:
parent
824d851859
commit
3b689b97bd
|
@ -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.
|
||||
|
|
|
@ -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 ();
|
||||
|
|
Loading…
Reference in New Issue