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

13 lines
508 B
Plaintext

$OpenBSD: patch-include_wx_time_h,v 1.1.1.1 2004/07/16 21:01:35 todd Exp $
--- include/wx/time.h.orig Sat Aug 31 21:29:11 2002
+++ include/wx/time.h Wed Apr 30 00:06:40 2003
@@ -123,7 +123,7 @@ public:
{ _T("%H:%M:%S"), _T("%H:%M") } // wx24h
};
- wxStrncpy(ms_bufTime, m_time.Format(formats[ms_Format][ms_Precision]),
+ strlcpy(ms_bufTime, m_time.Format(formats[ms_Format][ms_Precision]),
WXSIZEOF(ms_bufTime));
return ms_bufTime;