Commit bb05f9e9 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Make sure the component string is nul terminated.

parent 4a28e7cd
......@@ -364,7 +364,10 @@ static int dump_advertise_info(int fd, const char *type)
comp = &avt->bufA[20];
feat = strchr(comp,'>');
if (feat)
{
memcpy( comp_str, comp, feat - comp );
comp_str[feat-comp] = 0;
}
else
strcpy( prod_str, "?" );
......
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