Strange code in misc/registry.c
lionel.ulmer at free.fr
Mon Aug 4 02:01:08 CDT 2003
> > > 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 :-)
> I don't think so. memcpy != strcpy.
I meant to add 'with my fix attached to my first mail'.
But well, will let the masters fix it (I am currently happpy with the fix I
have in my tree).
Lionel Ulmer - http://www.bbrox.org/
More information about the wine-devel