[parrot/parrot] 1d6430: Fix Parrot_io_readall_s allocating too much

GitHub noreply at github.com
Fri Feb 1 01:12:58 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot
  Commit: 1d6430d658d010aeaedd6f9943403827d4237f06
      https://github.com/parrot/parrot/commit/1d6430d658d010aeaedd6f9943403827d4237f06
  Author: Brian Gernhardt <brian.gernhardt at mail.rit.edu>
  Date:   2013-01-31 (Thu, 31 Jan 2013)

  Changed paths:
    M src/io/api.c
    M t/pmc/filehandle.t

  Log Message:
  -----------
  Fix Parrot_io_readall_s allocating too much

Allocating a string for the entire size of the file is not the right
thing to do if the file has already been read from.

Fixes #930





More information about the parrot-commits mailing list