8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Warnings.

This commit is contained in:
asfernandes 2016-03-03 22:52:03 +00:00
parent 150fdb8710
commit 983b12b676
2 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@ ICryptKeyCallback* CryptKeyHolder::keyHandle(CheckStatusWrapper* status, const c
char kn[40]; char kn[40];
strcpy(kn, "Key"); strcpy(kn, "Key");
strncat(kn, keyName, sizeof(kn)); strncat(kn, keyName, sizeof(kn) - 3 - 1);
kn[sizeof(kn) - 1] = 0; kn[sizeof(kn) - 1] = 0;
IConfigEntry* confEntry = getEntry(status, kn); IConfigEntry* confEntry = getEntry(status, kn);

View File

@ -257,7 +257,7 @@ isc_svc_handle attachRemoteServiceManager(ISC_STATUS* status,
if (status[1] == 0) if (status[1] == 0)
return svc_handle; return svc_handle;
if (status[1] != isc_network_error) if (status[1] != isc_network_error)
return NULL; return 0;
fb_utils::init_status(status); fb_utils::init_status(status);
} }