1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-02-20 17:29:11 +00:00

Ensure max of 32 characters significant for IDs

This commit is contained in:
David Schmenk 2022-07-19 18:21:57 -07:00
parent bb41023498
commit c4551c2c59

View File

@ -130,7 +130,7 @@ int idlocal_add(char *name, int len, int type, int size)
return (0);
}
if (len > ID_LEN) len = ID_LEN;
char c = name[len];
c = name[len];
name[len] = '\0';
emit_idlocal(name, localsize);
name[len] = c;