commit | ccee169ab6aa4ae7515198dadcef5dd2286ede4b | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Sun Mar 25 21:49:48 2012 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Sun Mar 25 21:49:48 2012 +0000 |
tree | 8df6afdb677ce1348ca382293c76880890c9fd09 | |
parent | 20f6b54385d2462d858419f7c67509cb3d22d155 [diff] |
Robustify parsing of numbers from strings * defs.h (string_to_uint): New prototype. * util.c (string_to_uint): New function. * strace.c (error_opt_arg): New function. (process_opt_p_list): Use string_to_uint instead of atoi. Terminate in case of invalid process id. (init): Use string_to_uint instead of atoi. Use error_opt_arg in case of invalid option argument. * syscall.c (qual_syscall, qual_signal, qual_desc): Use string_to_uint instead of atoi.