openbsd-ports/cad/kicad/patches/patch-pcbnew_class_module_cpp
steven 19e5b0630b import kicad-2006-08-28
Kicad is an open source software for the creation of electronic schematic
diagrams and printed circuit board artwork.

with some ideas from freebsd.
also tested by Antti Harri <iku at openbsd.fi>, thanks
2007-01-09 16:12:55 +00:00

13 lines
581 B
Plaintext

$OpenBSD: patch-pcbnew_class_module_cpp,v 1.1.1.1 2007/01/09 16:12:55 steven Exp $
--- pcbnew/class_module.cpp.orig Thu Jan 4 18:57:36 2007
+++ pcbnew/class_module.cpp Thu Jan 4 18:58:32 2007
@@ -1020,7 +1020,7 @@ wxString msg;
pos += 14;
if ( flag ) // Affichage date de modification (utile en Module Editor)
{
- strcpy(Line, ctime(&m_LastEdit_Time));
+ strlcpy(Line, ctime((time_t*) &m_LastEdit_Time), sizeof(Line));
strtok(Line," \n\r");
strcpy( bufcar, strtok(NULL," \n\r") ); strcat(bufcar," ");
strcat( bufcar, strtok(NULL," \n\r") ); strcat(bufcar,", ");