VirtualBox

Changeset 3242 in kBuild


Ignore:
Timestamp:
Dec 25, 2018 8:59:29 PM (6 years ago)
Author:
bird
Message:

kmk/function.c: gcc complait about strcpy.

File:
1 edited

Legend:

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

    r3189 r3242  
    29312931        root_len = 1;
    29322932#endif
     2933#ifdef KMK
     2934      memcpy (apath, name, root_len);
     2935      apath[root_len] = '\0';
     2936      assert (strlen (apath) == root_len);
     2937#else
    29332938      strncpy (apath, name, root_len);
    29342939      apath[root_len] = '\0';
     2940#endif
    29352941      dest = apath + root_len;
    29362942      /* Get past the root, since we already copied it.  */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette