openbsd-ports/x11/wxWidgets/patches/patch-src_common_odbc_cpp
todd b25888b419 wxWidgets 2.4.2, C++ cross-platform GUI toolkit
www: http://www.wxwidgets.org/

from Andrew Dalgleish   < openbsd at ajd dot net dot au >
many thanks for much persistence!
2004-07-16 21:01:35 +00:00

14 lines
478 B
Plaintext

$OpenBSD: patch-src_common_odbc_cpp,v 1.1.1.1 2004/07/16 21:01:35 todd Exp $
--- src/common/odbc.cpp.orig Wed Dec 15 10:42:40 1999
+++ src/common/odbc.cpp Tue Apr 29 22:32:38 2003
@@ -1697,8 +1697,7 @@ bool wxQueryField::SetData(void* d, long
for (i = 0; i < size; i++)
str[i] = 0;
- strncpy(str, (char *)d, (int)size);
- str[size] = 0;
+ strlcpy(str, (char *)d, (int)size);
break;
}
case SQL_INTEGER: