mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
libtt/db_server_svc.C: coverity CID 87060; string overflow
This commit is contained in:
parent
bbf028becc
commit
6cd0391409
1 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ extern int optind;
|
||||||
|
|
||||||
void sig_handler(int sig);
|
void sig_handler(int sig);
|
||||||
|
|
||||||
enum {STARTED_FROM_INETD, STARTED_FROM_SHELL} start_mode;
|
static enum {STARTED_FROM_INETD, STARTED_FROM_SHELL} start_mode;
|
||||||
|
|
||||||
//
|
//
|
||||||
// This is used to hold the next time the automatic garbage
|
// This is used to hold the next time the automatic garbage
|
||||||
|
@ -632,7 +632,7 @@ _tt_process_transaction()
|
||||||
UNLOCK_RPC();
|
UNLOCK_RPC();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
strcpy(_tt_target_db, _tt_log_buf);
|
snprintf(_tt_target_db, MAXPATHLEN, "%s", _tt_log_buf);
|
||||||
/* open the NetISAM transaction target database */
|
/* open the NetISAM transaction target database */
|
||||||
int isfd = cached_isopen(_tt_target_db, ISINOUT+ISFIXLEN+ISMANULOCK);
|
int isfd = cached_isopen(_tt_target_db, ISINOUT+ISFIXLEN+ISMANULOCK);
|
||||||
if (isfd == -1) {
|
if (isfd == -1) {
|
||||||
|
|
Loading…
Reference in a new issue