From 53be3141d75f34b3d14c5ab1afb28571b238cb1e Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Sat, 22 Dec 2007 15:18:03 +0000 Subject: [PATCH] more specctra dsn import/export work --- pcbnew/dsn.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pcbnew/dsn.cpp b/pcbnew/dsn.cpp index 7949b56150..d511ced7e2 100644 --- a/pcbnew/dsn.cpp +++ b/pcbnew/dsn.cpp @@ -1096,6 +1096,13 @@ L_read: curText += *cur; head = cur+1; + + if( head= limit ) { wxString errtxt(_("Un-terminated delimited string") ); - ThrowIOError( errtxt, limit-start+1 ); + ThrowIOError( errtxt, cur-start+1 ); } curText.clear();