projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not use gnuisms in Makefile rules ($<)
[rrdtool.git]
/
src
/
rrd_thread_safe_nt.c
diff --git
a/src/rrd_thread_safe_nt.c
b/src/rrd_thread_safe_nt.c
index
fc98a33
..
a1875f8
100644
(file)
--- a/
src/rrd_thread_safe_nt.c
+++ b/
src/rrd_thread_safe_nt.c
@@
-1,5
+1,5
@@
/*****************************************************************************
/*****************************************************************************
- * RRDtool 1.2
rc6 Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2
.19 Copyright by Tobi Oetiker, 1997-2007
* This file: Copyright 2003 Peter Stamfest <peter@stamfest.at>
* & Tobias Oetiker
* Distributed under the GPL
* This file: Copyright 2003 Peter Stamfest <peter@stamfest.at>
* & Tobias Oetiker
* Distributed under the GPL
@@
-63,7
+63,8
@@
const char *rrd_strerror(int err) {
EnterCriticalSection(&CriticalSection);
strncpy(ctx->lib_errstr, strerror(err), ctx->errlen);
EnterCriticalSection(&CriticalSection);
strncpy(ctx->lib_errstr, strerror(err), ctx->errlen);
- LeaveCriticalSection(&CriticalSection);
+ ctx->lib_errstr[ctx->errlen] = '\0';
+ LeaveCriticalSection(&CriticalSection);
return ctx->lib_errstr;
}
return ctx->lib_errstr;
}