- char start_str[30], count_str[30];
- if (next_token_copy(args, start_str, sizeof(start_str)) > 0)
- start = atoi(start_str);
-
- if (next_token_copy(args, count_str, sizeof(count_str)) > 0)
- count = atoi(count_str);
-
- if (next_token_copy(args, render_str, sizeof(render_str)) > 0)
- type = render_str;
+ WRBUF tmp;
+
+ if ((tmp = next_token_new_wrbuf(args)))
+ {
+ start = atoi(wrbuf_cstr(tmp));
+ wrbuf_destroy(tmp);
+ }
+
+ if ((tmp = next_token_new_wrbuf(args)))
+ {
+ count = atoi(wrbuf_cstr(tmp));
+ wrbuf_destroy(tmp);
+ }
+ render_str = next_token_new_wrbuf(args);