git.netxms.org
/
public
/
netxms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- All component locks moved to memory
[public/netxms.git]
/
src
/
server
/
core
/
config.cpp
diff --git
a/src/server/core/config.cpp
b/src/server/core/config.cpp
index
d171239
..
b6fe334
100644
(file)
--- a/
src/server/core/config.cpp
+++ b/
src/server/core/config.cpp
@@
-264,8
+264,7
@@
BOOL ConfigReadStr(char *szVar, char *szBuffer, int iBufSize, const char *szDefa
char szQuery[256];
BOOL bSuccess = FALSE;
- strncpy(szBuffer, szDefault, iBufSize - 1);
- szBuffer[iBufSize - 1] = 0;
+ strncpy(szBuffer, szDefault, iBufSize);
if (strlen(szVar) > 127)
return FALSE;