Do not crash on symbol gen for long file names
This commit is contained in:
parent
714bbcf36e
commit
730440b07c
|
@ -451,8 +451,11 @@ review(char *filename)
|
||||||
static void
|
static void
|
||||||
writesym(char *filename)
|
writesym(char *filename)
|
||||||
{
|
{
|
||||||
char symdst[0x40];
|
char symdst[0x60];
|
||||||
FILE *fp = fopen(scat(scpy(filename, symdst, slen(filename) + 1), ".sym"), "w");
|
FILE *fp;
|
||||||
|
if(slen(filename) > 0x60 - 5)
|
||||||
|
return;
|
||||||
|
fp = fopen(scat(scpy(filename, symdst, slen(filename) + 1), ".sym"), "w");
|
||||||
int i;
|
int i;
|
||||||
if(fp != NULL) {
|
if(fp != NULL) {
|
||||||
for(i = 0; i < p.llen; i++) {
|
for(i = 0; i < p.llen; i++) {
|
||||||
|
|
Loading…
Reference in New Issue