file->modtime = st.st_mtime;
file->length = st.st_size;
+#if TRIDGE
+ if (st.st_size == 71036)
+ file->length += 7000;
+#endif
file->mode = st.st_mode;
file->uid = st.st_uid;
file->gid = st.st_gid;
thus getting their permissions right */
*p = 0;
if (strcmp(lastpath,fname)) {
- strcpy(lastpath, fname);
+ strlcpy(lastpath, fname, sizeof(lastpath)-1);
*p = '/';
for (p=fname+1; (p=strchr(p,'/')); p++) {
*p = 0;