Changeset 3002 for trunk/src/lib/nt/fts-nt.c
- Timestamp:
- Nov 5, 2016, 9:04:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/fts-nt.c
r3001 r3002 749 749 * could do them in fts_read before returning the path, but it's a 750 750 * lot easier here since the length is part of the dirent structure. 751 *752 * If not changing directories set a pointer so that can just append753 * each new name into the path.754 751 */ 755 752 if (sp->fts_options & FTS_NO_ANSI) { … … 757 754 } else { 758 755 len = NAPPEND(cur); 759 sp->fts_path[len] = '/'; /// @todo unnecessary?760 756 len++; 761 757 maxlen = sp->fts_pathlen - len; … … 763 759 764 760 cwcdir = NAPPENDW(cur); 765 sp->fts_wcspath[cwcdir] = '/'; /// @todo unnecessary?766 761 cwcdir++; 767 762 cwcmax = sp->fts_cwcpath - len; … … 840 835 fts_padjustw(sp, head); 841 836 842 /*843 * Reset the path back to original state.844 */845 sp->fts_path[cur->fts_pathlen] = '\0'; // @todo necessary?846 sp->fts_wcspath[cur->fts_cwcpath] = '\0'; // @todo necessary?847 848 837 /* If didn't find anything, return NULL. */ 849 838 if (!nitems) {
Note:
See TracChangeset
for help on using the changeset viewer.