Skip to content
Snippets Groups Projects
Commit 64e237d2 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Settime: convert timeunits with strtol() instead of parameter2int()

parent f4643a6c
No related branches found
No related tags found
No related merge requests found
......@@ -214,7 +214,7 @@ void *Settime(void *argument)
else if ( operatorID == SHIFTTIME )
{
const char *timeunits = operatorArgv()[0];
incperiod = parameter2int(timeunits);
incperiod = (int)strtol(timeunits, NULL, 10);
if ( timeunits[0] == '-' || timeunits[0] == '+' ) timeunits++;
while ( isdigit((int) *timeunits) ) timeunits++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment