Message-ID: <5BF60CD649EDD411A04600B0D049F53A5443F7@hydmail02.hyd.wilco-int.com> From: Prashant Ramachandra To: "'djgpp AT delorie DOT com'" Subject: RE: Extracting a directory name. Date: Tue, 19 Jun 2001 09:00:51 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain Reply-To: djgpp AT delorie DOT com On Monday, June 18, 2001 9:54 PM, Graham Reeds [SMTP:grahamr AT ntlworld DOT com] wrote: | > Did you consider the possibility that strncpy might not null- | > terminate | > the resulting string in BaseDir? | | I did, and tried to append one with strcat, but that didn't solve | the | problem. Append what with what? Try doing this basedir[bytestocopy] = 0; -- Prashant TR Web: http://www.midpec.com/