summaryrefslogtreecommitdiff
path: root/src/wavesplit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wavesplit.cpp')
-rwxr-xr-xsrc/wavesplit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wavesplit.cpp b/src/wavesplit.cpp
index f3dd3fd..3fc6899 100755
--- a/src/wavesplit.cpp
+++ b/src/wavesplit.cpp
@@ -138,12 +138,12 @@ public:
case 'd':
TEST_EXTRA_ARG(i, 'd');
- duration = atoi(argv[i]); // TODO: test for negative value, should use strtol()
+ duration = abs(strtol(argv[i], 0, 10));
break;
case 'f':
TEST_EXTRA_ARG(i, 'f');
- start_frame = atoi(argv[i]); // TODO: test for negative value, should use strtol()
+ start_frame = abs(strtol(argv[i], 0, 10));
break;
case 'h': help_flag = true; break;