Update symtab.c

fix segment core dump (malloc before copying)