Commit 190a46ec authored by Claes Sjofors's avatar Claes Sjofors

time_eFormat_TimeAndDate size fix

parent f80be4cc
......@@ -4690,6 +4690,7 @@ pwr_tStatus gdh_AttrValueToString(
// Format %6t, time before to date
sts = time_AtoAscii( (pwr_tTime *) value_ptr, time_eFormat_TimeAndDate,
timstr, sizeof(timstr));
timstr[17] = 0;
break;
default:
sts = time_AtoAscii( (pwr_tTime *) value_ptr, time_eFormat_DateAndTime,
......
......@@ -4092,7 +4092,7 @@ int GeValue::scan( grow_tObject object)
// Format %6t, 01:00:00 30/01/87
sts = time_AtoAscii( &val, time_eFormat_TimeAndDate,
timstr, sizeof(timstr));
timstr[8] = 0;
timstr[17] = 0;
break;
default:
sts = time_AtoAscii( &val, time_eFormat_DateAndTime,
......@@ -8218,7 +8218,7 @@ int GeTable::scan( grow_tObject object)
// Format %6t, 01:00:00 30/01/87
sts = time_AtoAscii( (pwr_tTime *) headerref_p[i][j], time_eFormat_TimeAndDate,
timstr, sizeof(timstr));
timstr[8] = 0;
timstr[17] = 0;
break;
default:
sts = time_AtoAscii( (pwr_tTime *) headerref_p[i][j], time_eFormat_DateAndTime,
......@@ -8381,7 +8381,7 @@ int GeTable::scan( grow_tObject object)
// Format %6t, 01:00:00 30/01/87
sts = time_AtoAscii( (pwr_tTime *) p[i] + offs, time_eFormat_TimeAndDate,
timstr, sizeof(timstr));
timstr[8] = 0;
timstr[17] = 0;
break;
default:
sts = time_AtoAscii( (pwr_tTime *)(p[i] + offs), time_eFormat_DateAndTime,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment