Ignore:
Timestamp:
Aug 13, 2025, 1:32:47 AM (4 weeks ago)
Author:
bird
Message:

lib/fts-nt.c: Fixed realloc bug for fts_wcspath (only got half the size required).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/fts-nt.c

    r3535 r3681  
    13261326        if (cwcmore) {
    13271327                sp->fts_cwcpath += cwcmore + 256;
    1328                 ptr = realloc(sp->fts_wcspath, sp->fts_cwcpath);
     1328                ptr = realloc(sp->fts_wcspath, sp->fts_cwcpath * sizeof(sp->fts_wcspath[0]));
    13291329                if (ptr) {
    13301330                        sp->fts_wcspath = ptr;
Note: See TracChangeset for help on using the changeset viewer.