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: <20321 DOT 59968 DOT 314778 DOT 216654 AT vagabond DOT local> <20120316194917 DOT GA28072 AT malakian DOT lan> Date: Sat, 17 Mar 2012 16:07:35 +0300 Message-ID: Subject: Re: [geda-user] very old .pcb file From: Sergey Alyoshin To: geda-user AT delorie DOT com Content-Type: text/plain; charset=ISO-8859-1 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 Precedence: bulk 2012/3/16 Andrew Poelstra : > 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;