fixed properties parser

Wed, 17 Jul 2013 16:17:42 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 17 Jul 2013 16:17:42 +0200
changeset 117
ec0ae0c8854e
parent 116
234920008754
child 118
151f5345f303

fixed properties parser

ucx/properties.c file | annotate | diff | comparison | revisions
--- a/ucx/properties.c	Wed Jul 17 15:56:01 2013 +0200
+++ b/ucx/properties.c	Wed Jul 17 16:17:42 2013 +0200
@@ -176,7 +176,9 @@
             }
         } else {
             sstr_t n = sstrn(buf, delimiter_index);
-            sstr_t v = sstrn(buf+delimiter_index+1, i-delimiter_index-1); 
+            sstr_t v = sstrn(
+                    buf + delimiter_index + 1,
+                    line.length - delimiter_index - 1); 
             n = sstrtrim(n);
             v = sstrtrim(v);
             if(n.length != 0 || v.length != 0) {

mercurial