mnt: strtol -> std::strtol
authorRobert Swiecki <robert@swiecki.net>
Sun, 11 Feb 2018 22:53:03 +0000 (23:53 +0100)
committerRobert Swiecki <robert@swiecki.net>
Sun, 11 Feb 2018 22:53:03 +0000 (23:53 +0100)
cmdline.cc

index 17ed5d7479ba681dcd647bd77fdc4d14c5ebd49e..49be6f035929f94a4f282e643a098b90453add26 100644 (file)
@@ -425,7 +425,7 @@ std::unique_ptr<nsjconf_t> parseArgs(int argc, char* argv[]) {
                        nsjconf->logfile = optarg;
                        break;
                case 'L':
-                       nsjconf->logfile = "/dev/fd/" + std::to_string(strtol(optarg, NULL, 0));
+                       nsjconf->logfile = "/dev/fd/" + std::to_string(std::strtol(optarg, NULL, 10));
                        break;
                case 'd':
                        nsjconf->daemonize = true;