author | laurent |
Wed, 16 Sep 2009 14:00:56 +0200 | |
changeset 394 | 5371e3d32f05 |
parent 393 | af20e07e53c5 |
child 395 | 433fd448dd31 |
--- a/targets/plc_debug.c Wed Sep 16 13:54:57 2009 +0200 +++ b/targets/plc_debug.c Wed Sep 16 14:00:56 2009 +0200 @@ -102,7 +102,7 @@ /* compute next cursor positon*/ next_cursor = buffer_cursor + size; /* if buffer not full */ - if(next_cursor < debug_buffer + BUFFER_SIZE) + if(next_cursor <= debug_buffer + BUFFER_SIZE) { /* copy data to the buffer */ memcpy(buffer_cursor, my_var->ptrvalue, size);