]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vbox: Replace atoi with virStrToLong_i
authorMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 30 Mar 2010 14:27:20 +0000 (16:27 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 1 Apr 2010 10:53:41 +0000 (12:53 +0200)
commit2f047d4816591932c132f27564b7905efd757fdd
tree483c3bad110452c50b4e7bd8880ea9f3bcea0e87
parent73b45bfbffa25e196c6095692a4619404a583ec8
vbox: Replace atoi with virStrToLong_i

Parsing is stricter now and doesn't accept trailing characters
after the actual value or non-number strings anymore. atoi just
returns 0 in case it cannot parse a number from the given string.
Now an error is reported for such a string.
src/vbox/vbox_tmpl.c