Commit d935e2c2 authored by Claes Sjofors's avatar Claes Sjofors

Xtt logging bugfix

parent 39f26a78
......@@ -1343,7 +1343,7 @@ int GeCurve::read_file( char *filename)
break;
}
else
cd->y_data[i][j] = 0;
cd->y_data[i-1][j] = 0;
}
}
if ( skip_line)
......
......@@ -623,7 +623,8 @@ int XttLogging::start()
return XNAV__HOLDCOMMAND;
}
if ( wanted_buffer_size != buffer_size) {
if ( wanted_buffer_size != buffer_size ||
buffer_ptr == 0) {
// Reallocate
if ( buffer_ptr != 0)
free( buffer_ptr);
......
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