Skip to content
Snippets Groups Projects
Commit 9e955110 authored by Danny Auble's avatar Danny Auble
Browse files

BGQ - better code to parse taskid

parent 4fe889c4
No related branches found
No related tags found
No related merge requests found
......@@ -1745,9 +1745,8 @@ static void _opt_args(int argc, char **argv)
if (_verbose)
command_pos += 2;
if (opt.ifname) {
char *p;
taskid = strtoul(opt.ifname, &p, 10);
if ((*p == '\0') && ((int) taskid < opt.ntasks)) {
if (parse_uint32(opt.ifname, &taskid)
&& ((int) taskid < opt.ntasks)) {
command_pos += 2;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment