Make sure the component string is nul terminated.

This commit is contained in:
Mike McCormack 2005-10-18 10:36:38 +00:00 committed by Alexandre Julliard
parent 4a28e7cdc9
commit bb05f9e9eb
1 changed files with 3 additions and 0 deletions

View File

@ -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, "?" );