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

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

parent b55cf4a0
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ void *Settime(void *argument)
if ( operatorArgc() == 3 )
{
const char *timeunits = operatorArgv()[2];
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