www.delorie.com/archives/browse.cgi | search |
Message-ID: | <5BF60CD649EDD411A04600B0D049F53A5443F7@hydmail02.hyd.wilco-int.com> |
From: | Prashant Ramachandra <rprash AT wilco-int DOT com> |
To: | "'djgpp AT delorie DOT com'" <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) |
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 <tr AT midpec DOT com> Web: http://www.midpec.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |