This is an easy defect to replicate. It manifests when updating a value
that is written as:
key = VALUE
and works fine with:
key=VALUE
The problem is in the string length comparison. When the space is added
before the '=' sign, it is not stripped and renders a faulty equality test
around line 457:
match = ((ep != NULL) && ((int)(ep-sp) == len) && (_tcsnicmp(sp,Key,len) ==
0));
'ep-sp' ends up being one more than 'len' when there is a space before the
equals.
Simple workaround (avoid spaces), but it would be nice to have it fixed.
Original issue reported on code.google.com by andy.hew...@gmail.com on 23 Oct 2009 at 3:41
Original issue reported on code.google.com by
andy.hew...@gmail.com
on 23 Oct 2009 at 3:41