ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/porting.C
(Generate patch)

Comparing deliantra/server/common/porting.C (file contents):
Revision 1.13 by pippijn, Mon Jan 15 21:06:18 2007 UTC vs.
Revision 1.14 by root, Mon Feb 5 01:24:45 2007 UTC

180 char buf[MAX_BUF], *cp = buf; 180 char buf[MAX_BUF], *cp = buf;
181 struct stat statbuf; 181 struct stat statbuf;
182 182
183 if (!filename || !*filename) 183 if (!filename || !*filename)
184 return; 184 return;
185
185 strcpy (buf, filename); 186 assign (buf, filename);
186 187
187 while ((cp = strchr (cp + 1, (int) '/'))) 188 while ((cp = strchr (cp + 1, (int) '/')))
188 { 189 {
189 *cp = '\0'; 190 *cp = '\0';
190 if (stat (buf, &statbuf) || !S_ISDIR (statbuf.st_mode)) 191 if (stat (buf, &statbuf) || !S_ISDIR (statbuf.st_mode))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines