small bug in 1.2.0

5468696A6D656E thijmen at xs4all.nl
Mon Oct 28 12:53:02 CET 2002


I found a small bug in the 1.2.0 sources, didn't check the 1.2.1 sources though
due to lack of time.
line 106 of file util/w32reg.c reads:
tmp = malloc (n1 + 1);

this should be:
n1 = nbytes;
tmp = malloc (n1 + 1);

Otherwise, the buffer tmp is just as big as it was, which will make the second call
to ExpandEnvironmentStrings fail again, if it failed before.

Th.

-- 
__Thijmen Klok________




More information about the Gnupg-devel mailing list