| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
| X-Recipient: | geda-user AT delorie DOT com |
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
| d=gmail.com; s=20120113; | |
| h=mime-version:in-reply-to:references:date:message-id:subject:from:to | |
| :content-type; | |
| bh=mzB0W1fUiKGbFikly+CnKq9DKvEbycawTVhBiqPMSNw=; | |
| b=PzJAHy//WXEmfGPqNXCUREhd0NwHBotToxe1h8DQ8sGHA8GxKLRgb2gCQ3/wBMK/vv | |
| tBIx3ICvIK5IxNaxaMtoW9/7PDFaP/qlrQdCgaKO7qE7/7iHSq+tAlw8vStFpIxhYtOo | |
| GRyzJ3aezJ4MiItI5gjBveJN14hJFEE6YlXDopvmjF4mNwl7wqh2s6ssAzkaXKGS9naW | |
| 3RVEH18PyoPTzyw7btoGZSq9jBqTFWCqjgAhEOU1PLqpMjDSF+WBv92rGOYlcofSoFJV | |
| zcopvr+ViJ5FH61sn91ih1hcynAr6jkjdI6P6aGxJIemg0yC7LJhf7bvLKcwQ1c9KZ0E | |
| dZ+Q== | |
| MIME-Version: | 1.0 |
| In-Reply-To: | <20120316194917.GA28072@malakian.lan> |
| References: | <alpine DOT DEB DOT 2 DOT 00 DOT 1203150341280 DOT 15144 AT zaphod DOT 661 DOT org> |
| <20321 DOT 59968 DOT 314778 DOT 216654 AT vagabond DOT local> | |
| <alpine DOT DEB DOT 2 DOT 00 DOT 1203161149570 DOT 8944 AT zaphod DOT 661 DOT org> | |
| <20120316194917 DOT GA28072 AT malakian DOT lan> | |
| Date: | Sat, 17 Mar 2012 16:07:35 +0300 |
| Message-ID: | <CAOxVtSQ1VSvMxXePObD3G++EX0NsBC=LxjV+LjfX5D9o3tcv=w@mail.gmail.com> |
| Subject: | Re: [geda-user] very old .pcb file |
| From: | Sergey Alyoshin <alyoshin DOT s AT gmail DOT com> |
| To: | geda-user AT delorie DOT com |
| Reply-To: | geda-user AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | geda-user AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
2012/3/16 Andrew Poelstra <asp11 AT sfu DOT ca>:
> Or maybe somebody has already fixed it? I have not checket git HEAD
> in a month or so.
With following patch, file http://661.org/tmp/ramcard.pcb can be
opened in pcb from git.
Is it acceptable?
diff --git a/src/parse_y.y b/src/parse_y.y
index 2ae9f6c..22d02cc 100644
--- a/src/parse_y.y
+++ b/src/parse_y.y
@@ -863,6 +863,8 @@ layer
/* memory for name is already allocated */
Layer->Name = $4;
+ if (Layer->Name == NULL)
+ Layer->Name = strdup("");
LayerFlag[$3-1] = true;
if (yyData->LayerN + 2 < $3)
yyData->LayerN = $3 - 2;
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |