VirtualBox

Changeset 2627 in kBuild for trunk/src/kObjCache


Ignore:
Timestamp:
Aug 9, 2012 2:12:12 PM (13 years ago)
Author:
bird
Message:

kObjCache: Fixed buffer allocation bug (forgot terminator).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kObjCache/kObjCache.c

    r2620 r2627  
    3030# define ELECTRIC_HEAP
    3131# include "../kmk/electric.h"
     32# include "../kmk/electric.c"
    3233#endif
    3334#include <string.h>
     
    13011302    if (cchFile >= pCppRd->cbFileNmBuf)
    13021303    {
    1303         pCppRd->cbFileNmBuf  = (cchFile + 15) & ~(size_t)15;
     1304        pCppRd->cbFileNmBuf  = (cchFile + 15 + 1) & ~(size_t)15;
    13041305        pCppRd->pszFileNmBuf = xrealloc(pCppRd->pszFileNmBuf, pCppRd->cbFileNmBuf);
    13051306    }
Note: See TracChangeset for help on using the changeset viewer.

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