openbsd-ports/cad/kicad/patches/patch-pcbnew_class_module_cpp

13 lines
581 B
Plaintext
Raw Normal View History

$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,", ");