Addresses: https://github.com/karelzak/util-linux/issues/1358
Signed-off-by: Karel Zak <kzak@redhat.com>
#include "nls.h"
#include "closestream.h"
#include "timeutils.h"
+#include "strutils.h"
#include "ipcutils.h"
while ((opt = getopt_long(argc, argv, options, longopts, NULL)) != -1) {
switch (opt) {
case 'i':
- id = atoi (optarg);
+ id = strtos32_or_err(optarg, _("failed to parse id argument"));
specific = 1;
break;
case 'a':