project_files/hwc/rtl/misc.c
changeset 10130 a9d509848390
parent 10129 cd2a64a1f4aa
child 10131 4b4a043111f4
--- a/project_files/hwc/rtl/misc.c	Tue Feb 11 01:19:44 2014 +0400
+++ b/project_files/hwc/rtl/misc.c	Tue Feb 11 22:05:03 2014 +0400
@@ -205,7 +205,7 @@
     if(s->len == MAX_ANSISTRING_LENGTH)
         --s->len;
 
-    s->s[s->len] = 0;
+    s->s[s->len + 1] = 0;
     return &s->s[1];
 }