project_files/hwc/rtl/misc.c
changeset 11657 09ebdfe364d9
parent 10242 0ab0d7fa1c62
child 14255 a7320c65f484
--- a/project_files/hwc/rtl/misc.c	Wed Apr 13 20:02:14 2016 -0400
+++ b/project_files/hwc/rtl/misc.c	Mon Apr 18 21:47:39 2016 +0300
@@ -78,8 +78,8 @@
 {
     if(s.len < MAX_ANSISTRING_LENGTH)
     {
+        ++s.len;
         s.s[s.len] = c;
-        ++s.len;
     }
 
     return s;