Skip to content
  • Sven Neumann's avatar
    delay memory allocation until after the first read. Saves a bunch of · aec8923f
    Sven Neumann authored
    2005-03-10  Sven Neumann  <sven@gimp.org>
    
    	* glib/gfileutils.c (get_contents_stdio): delay memory allocation
    	until after the first read. Saves a bunch of reallocs. Also
    	increased the buffer size to 4096 bytes. (bug #165954)
    
    	* tests/file-test.c (test_get_contents): added a (very basic) test
    	for g_file_get_contents().
    aec8923f
To find the state of this project's repository at the time of any of these versions, check out the tags.