mirror of
https://github.com/reactos/wine.git
synced 2025-02-12 23:58:56 +00:00
Make sure the component string is nul terminated.
This commit is contained in:
parent
4a28e7cdc9
commit
bb05f9e9eb
@ -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, "?" );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user