0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-05 22:05:04 +00:00

(uxnasm)Allow more space for symbols filename, and check for length

This commit is contained in:
neauoire 2022-12-10 11:07:45 -08:00
parent 2f3954d398
commit c97aa87faf

View file

@ -451,8 +451,11 @@ review(char *filename)
static void
writesym(char *filename)
{
char symdst[0x40];
FILE *fp = fopen(scat(scpy(filename, symdst, slen(filename) + 1), ".sym"), "w");
char symdst[0x60];
FILE *fp
if(slen(filename) > 0x60 - 5)
return;
fp = fopen(scat(scpy(filename, symdst, slen(filename) + 1), ".sym"), "w");
int i;
if(fp != NULL) {
for(i = 0; i < p.llen; i++) {