forked from bartvdbraak/blender
filename was being copied into a string only the length of the max file.
This commit is contained in:
parent
b3eb2d19a9
commit
79fd2a2ae4
@ -529,7 +529,7 @@ int unpackVFont(VFont * vfont, int how)
|
|||||||
|
|
||||||
int unpackSample(bSample *sample, int how)
|
int unpackSample(bSample *sample, int how)
|
||||||
{
|
{
|
||||||
char localname[FILE_MAX], fi[FILE_MAX];
|
char localname[FILE_MAXDIR + FILE_MAX], fi[FILE_MAX];
|
||||||
char * newname;
|
char * newname;
|
||||||
int ret_value = RET_ERROR;
|
int ret_value = RET_ERROR;
|
||||||
PackedFile *pf;
|
PackedFile *pf;
|
||||||
@ -559,7 +559,7 @@ int unpackSample(bSample *sample, int how)
|
|||||||
|
|
||||||
int unpackImage(Image * ima, int how)
|
int unpackImage(Image * ima, int how)
|
||||||
{
|
{
|
||||||
char localname[FILE_MAX], fi[FILE_MAX];
|
char localname[FILE_MAXDIR + FILE_MAX], fi[FILE_MAX];
|
||||||
char * newname;
|
char * newname;
|
||||||
int ret_value = RET_ERROR;
|
int ret_value = RET_ERROR;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user