diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-03 17:44:13 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-07-04 14:39:28 +0200 |
commit | 8b3ae692b83ecffb9315892d67b8ade5e0427e74 (patch) | |
tree | 77ecc975e10bc01374bba5d7e784c02b0831abb2 /vl.c | |
parent | b3f6ea7e55e8228d6f84d5cee7cb11cae917ba95 (diff) |
vl: convert -tb-size to qemu_strtoul
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3933,9 +3933,9 @@ int main(int argc, char **argv, char **envp) configure_rtc(opts); break; case QEMU_OPTION_tb_size: - tcg_tb_size = strtol(optarg, NULL, 0); - if (tcg_tb_size < 0) { - tcg_tb_size = 0; + if (qemu_strtoul(optarg, NULL, 0, &tcg_tb_size) < 0) { + error_report("Invalid argument to -tb-size"); + exit(1); } break; case QEMU_OPTION_icount: |