Commit ac1bc2ca by Richard Kenner

(scan_libraries): cast lsyms' alloca() to LDSYM*.

From-SVN: r10324
parent ba5c3ac4
......@@ -2692,7 +2692,7 @@ scan_libraries (prog_name)
fatal ("%s: can't read loader section", soname);
/*fprintf (stderr, "\tscanning %s\n", soname);*/
symcnt = soldh.l_nsyms;
lsyms = alloca (symcnt * sizeof *lsyms);
lsyms = (LDSYM*) alloca (symcnt * sizeof *lsyms);
symcnt = FREAD (lsyms, sizeof *lsyms, symcnt, libptr);
ldstrings = alloca (soldh.l_stlen);
FSEEK (libptr, soldsh.s_scnptr+soldh.l_stoff, BEGINNING);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment