Fixed two more overruns in config.c.
This commit is contained in:
@@ -2099,7 +2099,7 @@ config_set_int(char *head, char *name, int val)
|
|||||||
ent = create_entry(section, name);
|
ent = create_entry(section, name);
|
||||||
|
|
||||||
sprintf(ent->data, "%i", val);
|
sprintf(ent->data, "%i", val);
|
||||||
mbstowcs(ent->wdata, ent->data, sizeof(ent->wdata));
|
mbstowcs(ent->wdata, ent->data, sizeof_w(ent->wdata));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2118,7 +2118,7 @@ config_set_hex16(char *head, char *name, int val)
|
|||||||
ent = create_entry(section, name);
|
ent = create_entry(section, name);
|
||||||
|
|
||||||
sprintf(ent->data, "%04X", val);
|
sprintf(ent->data, "%04X", val);
|
||||||
mbstowcs(ent->wdata, ent->data, sizeof(ent->wdata));
|
mbstowcs(ent->wdata, ent->data, sizeof_w(ent->wdata));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user