Changeset 3186 for trunk/src/kmk/dir.c


Ignore:
Timestamp:
Mar 23, 2018, 11:44:44 PM (7 years ago)
Author:
bird
Message:

kmk: replaced w32ify() as it uses unsafe static buffer and encourages buffer size assumptions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/dir.c

    r3140 r3186  
    585585
    586586#ifdef WINDOWS32
     587          PATH_VAR (w32_fullpath);
    587588          char *w32_path;
    588589#endif
     
    593594          dc_key.dev = st.st_dev;
    594595#ifdef WINDOWS32
     596          w32_path = unix_slashes_resolved (name, w32_fullpath, GET_PATH_MAX);
    595597# ifndef CONFIG_WITH_STRCACHE2
    596           dc_key.path_key = w32_path = w32ify (name, 1);
     598          dc_key.path_key = w32_path; /* = w32ify (name, 1); - bird */
    597599# else  /* CONFIG_WITH_STRCACHE2 */
    598           w32_path = w32ify (name, 1);
    599           dc_key.path_key = strcache_add (w32_path);
     600          dc_key.path_key = strcache_add (w32_path);
    600601# endif /* CONFIG_WITH_STRCACHE2 */
    601           dc_key.ctime = st.st_ctime;
     602          dc_key.ctime = st.st_ctime;
    602603#else
    603604# ifdef VMS_INO_T
Note: See TracChangeset for help on using the changeset viewer.