Commit 36125abf authored by claes's avatar claes

Bugcheck inserted for Time in Volume Sysbody the can be corrupt

parent f78cc2ab
/*
* Proview $Id: wb_print_wbl.cpp,v 1.17 2006-05-24 15:02:03 claes Exp $
* Proview $Id: wb_print_wbl.cpp,v 1.18 2007-01-23 13:13:51 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -131,6 +131,11 @@ void wb_print_wbl::printBody(wb_volume& v,
switch ( bix) {
case pwr_eBix_rt:
btime = o.rbTime();
// Bugcheck in 4.2 btime can be corrupt
if ( btime.tv_nsec < 0 || btime.tv_nsec >= 1000000000)
break;
strcpy( timestr, " ");
time_AtoAscii( &btime, time_eFormat_DateAndTime, &timestr[1], sizeof(timestr)-1);
break;
......
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