12345678910111213 |
- $OpenBSD: patch-pcbnew_class_module_cpp,v 1.2 2011/05/03 18:31:14 jasper Exp $
- --- pcbnew/class_module.cpp.orig Sat Aug 21 11:49:32 2010
- +++ pcbnew/class_module.cpp Sat Aug 21 11:50:03 2010
- @@ -840,7 +840,7 @@ void MODULE::DisplayInfo( WinEDA_DrawFrame* frame )
- if( flag ) // Display last date the component was edited( useful in Module Editor)
- {
- time_t edit_time = m_LastEdit_Time;
- - strcpy( Line, ctime( &edit_time ) );
- + strlcpy(Line, ctime((time_t*) &edit_time), sizeof(Line));
- strtok( Line, " \n\r" );
- strcpy( bufcar, strtok( NULL, " \n\r" ) ); strcat( bufcar, " " );
- strcat( bufcar, strtok( NULL, " \n\r" ) ); strcat( bufcar, ", " );
|