- Fixed a bug in hklscan: core dump when writing to file
- Fixed two small issues with evcontroller: no test for privilege on drive - Many changes to AMOR software.
This commit is contained in:
11
hklscan.c
11
hklscan.c
@@ -134,7 +134,16 @@
|
||||
|
||||
assert(self->pCon);
|
||||
assert(self->pSics);
|
||||
assert(self->fd);
|
||||
|
||||
if(!self->fd)
|
||||
{
|
||||
self->fd = fopen(self->pFile,"r+");
|
||||
if(!self->fd)
|
||||
{
|
||||
SCWrite(self->pCon,"ERROR: failed to reopen scan file during scan",eError);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* jump to end of header */
|
||||
fseek(self->fd,self->lPos, SEEK_SET);
|
||||
|
||||
Reference in New Issue
Block a user