diff --git a/src/gdb_main.c b/src/gdb_main.c index 6b2059f..cec5822 100644 --- a/src/gdb_main.c +++ b/src/gdb_main.c @@ -41,7 +41,7 @@ #define ERROR_IF_NO_TARGET() \ if(!cur_target) { gdb_putpacketz("EFF"); break; } -static char pbuf[BUF_SIZE]; +static char pbuf[BUF_SIZE+1]; static target *cur_target; static target *last_target;