Strange code in misc/registry.c

Lionel Ulmer lionel.ulmer at
Sun Aug 3 13:58:02 CDT 2003

> It's clearly a bug, since the code asks for trouble by requesting to
> read more data than it actually should. In that case the code has to do:
> new_key_name = malloc(strlen(key_name)+dkh->keynamelen+1);
> strcpy(new_key_name, key_name);

Well, these two lines are EXACTLY what the strndup code does :-)


		 Lionel Ulmer -

More information about the wine-devel mailing list