targets/plc_debug.c
changeset 394 5371e3d32f05
parent 386 2932b0dd437c
child 397 6a7ff66a811d
--- 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);