cmMallocDebug.c:Fixed bug in cmMdAllocStr() where terminating zero was not
always inserted.
Bu işleme şunda yer alıyor:
ebeveyn
efd54c7657
işleme
e78e80dd06
@ -54,6 +54,7 @@ cmChar_t* cmMdAllocStr( void* orgStrPtr, const cmChar_t* str, unsigned n, u
|
||||
n += 1;
|
||||
cmChar_t* cp = cmMdAllocate(orgStrPtr,n,sizeof(cmChar_t),flags);
|
||||
strncpy(cp,str,n);
|
||||
cp[n-1] = 0;
|
||||
return cp;
|
||||
}
|
||||
|
||||
|
Yükleniyor…
Yeni konuda referans
Bir kullanıcı engelle