mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
net: Real fix for check_params users
OK, last try:8e4416af45
broke -net socket,ffad4116b9
tried to fix it but broke error reporting of invalid parameters. So this patch widely revertsffad4116b9
again and intead fixes those callers of check_params that originally suffered from overwritten buffers by using separate ones. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Mark McLoughlin <markmc@redhat.com>
This commit is contained in:
parent
cda94b2782
commit
0aa7a205c8
3 changed files with 28 additions and 37 deletions
3
sysemu.h
3
sysemu.h
|
@ -270,7 +270,8 @@ void usb_info(Monitor *mon);
|
|||
|
||||
int get_param_value(char *buf, int buf_size,
|
||||
const char *tag, const char *str);
|
||||
int check_params(const char * const *params, const char *str);
|
||||
int check_params(char *buf, int buf_size,
|
||||
const char * const *params, const char *str);
|
||||
|
||||
void register_devices(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue