Wed, 17 Jul 2013 16:17:42 +0200
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) {