Commit da0f3337 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

widl: Alloc big enough buffer in dup_basename to handle registration suffix.

parent 61f894c5
......@@ -159,8 +159,8 @@ char *dup_basename(const char *name, const char *ext)
namelen = strlen(name);
/* +4 for later extension and +1 for '\0' */
base = xmalloc(namelen +4 +1);
/* +6 for later extension (strlen("_r.rgs")) and +1 for '\0' */
base = xmalloc(namelen +6 +1);
strcpy(base, name);
if(!strcasecmp(name + namelen-extlen, ext))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment