openbsd-ports/x11/wxWidgets/patches/patch-src_common_odbc_cpp

14 lines
478 B
Plaintext
Raw Normal View History

$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: