prims.cc (process_gcj_properties): Don't increment i within LHS of assignment.

2004-07-19  Bryce McKinlay  <mckinlay@redhat.com>

	* prims.cc (process_gcj_properties): Don't increment i within LHS
	of assignment.

From-SVN: r84957
This commit is contained in:
Bryce McKinlay 2004-07-20 15:36:56 +00:00 committed by Bryce McKinlay
parent fb23247680
commit b4ffdef7aa
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
* prims.cc (process_gcj_properties): Don't increment i within LHS
of assignment.
2004-07-19 Per Bothner <per@bothner.com> 2004-07-19 Per Bothner <per@bothner.com>
Print -verbose:message on "loading", not initialization. Print -verbose:message on "loading", not initialization.

View File

@ -922,8 +922,10 @@ process_gcj_properties ()
// Null terminate the strings. // Null terminate the strings.
while (_Jv_Environment_Properties[i].key) while (_Jv_Environment_Properties[i].key)
{ {
_Jv_Environment_Properties[i].key[_Jv_Environment_Properties[i].key_length] = 0; property_pair *prop = &_Jv_Environment_Properties[i];
_Jv_Environment_Properties[i++].value[_Jv_Environment_Properties[i].value_length] = 0; prop->key[prop->key_length] = 0;
prop->value[prop->value_length] = 0;
i++;
} }
} }
} }