imf bugs
[asdcplib.git] / src / wavesplit.cpp
index f3dd3fd8bc7119c414a9077a05301e7a8ee4b502..3fc689910fc16fa6ac9fe16a78587984d627ee17 100755 (executable)
@@ -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;