VirtualBox

Changeset 2901 in kBuild


Ignore:
Timestamp:
Sep 9, 2016 3:10:24 PM (8 years ago)
Author:
bird
Message:

asprintf emulation fix

Location:
trunk/src/kmk/kmkbuiltin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/mscfakes.c

    r2759 r2901  
    634634#ifdef va_copy
    635635        va_copy(va2, va);
    636         rc = snprintf(psz, cb, fmt, va2);
     636        rc = vsnprintf(psz, cb, fmt, va2);
    637637        va_end(vaCopy);
    638638#else
    639639        va2 = va;
    640         rc = snprintf(psz, cb, fmt, va2);
     640        rc = vsnprintf(psz, cb, fmt, va2);
    641641#endif
    642642        if (rc < 0 || (size_t)rc < cb)
  • trunk/src/kmk/kmkbuiltin/solfakes.c

    r2413 r2901  
    6464#ifdef va_copy
    6565        va_copy(va2, va);
    66         rc = snprintf(psz, cb, fmt, va2);
     66        rc = vsnprintf(psz, cb, fmt, va2);
    6767        va_end(va2);
    6868#else
    6969        va2 = va;
    70         rc = snprintf(psz, cb, fmt, va2);
     70        rc = vsnprintf(psz, cb, fmt, va2);
    7171#endif
    7272        if (rc < 0 || (size_t)rc < cb)
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