openbsd-ports/x11/wxWidgets/patches/patch-samples_newgrid_griddemo_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

18 lines
661 B
Plaintext

$OpenBSD: patch-samples_newgrid_griddemo_cpp,v 1.1.1.1 2004/07/16 21:01:35 todd Exp $
--- samples/newgrid/griddemo.cpp.orig Mon Dec 16 23:56:06 2002
+++ samples/newgrid/griddemo.cpp Tue Apr 29 22:00:59 2003
@@ -1221,11 +1221,11 @@ void BugsGridTable::SetValue( int row, i
break;
case Col_Summary:
- wxStrncpy(gd.summary, value, WXSIZEOF(gd.summary));
+ strlcpy(gd.summary, value, WXSIZEOF(gd.summary));
break;
case Col_Platform:
- wxStrncpy(gd.platform, value, WXSIZEOF(gd.platform));
+ strlcpy(gd.platform, value, WXSIZEOF(gd.platform));
break;
}
}