Files
pkgsrc-ng/cad/kicad/patches/patch-eeschema_sch_sheet.cpp
2016-11-18 22:39:22 +01:00

18 lines
639 B
C++

$NetBSD: patch-eeschema_sch_sheet.cpp,v 1.3 2016/09/08 09:32:28 bouyer Exp $
64bit time_t fix
Reported upstream as bug id 1280901
--- eeschema/sch_sheet.cpp.orig 2015-12-11 17:53:27.000000000 +0100
+++ eeschema/sch_sheet.cpp 2015-12-11 17:54:26.000000000 +0100
@@ -219,7 +219,9 @@
if( ((char*)aLine)[0] == 'U' )
{
- sscanf( ((char*)aLine) + 1, "%lX", &m_TimeStamp );
+ u_long tmstp;
+ sscanf( ((char*)aLine) + 1, "%lX", &tmstp );
+ m_TimeStamp = tmstp;
if( m_TimeStamp == 0 ) // zero is not unique!
SetTimeStamp( GetNewTimeStamp() );
continue;