X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Thu, 7 Jul 2005 01:33:22 -0400
Message-Id: <200507070533.j675XMNZ030942@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <1120713425.526371.222910@g47g2000cwa.googlegroups.com>
	(rahul DOT h AT gmail DOT com)
Subject: Re: pointers in Strucrure assignment problem
References:  <1120713425 DOT 526371 DOT 222910 AT g47g2000cwa DOT googlegroups DOT com>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com
Precedence: bulk


> 		LD[i].LinePtr="";

This does NOT initialize your buffer with the given string.  This
points your buffer *to* the given string.  Since they all now point to
the same string...