Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- sys-utils/swapon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index c9cabc1..3fe6592 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -730,7 +730,8 @@ int main(int argc, char *argv[]) usage(stdout); break; case 'p': /* priority */ - priority = atoi(optarg); + priority = strtos16_or_err(optarg, + _("failed to parse argument")); break; case 'L': add_label(optarg); -- 1.7.12.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html