Re: combining large xmalloc and setvbuf

2012-11-17 Thread Sami Kerola
On Sat, Nov 17, 2012 at 4:07 PM, Paul Eggert wrote: > I'd try compiling with gcc -Wall. Most likely > you have a prototype missing. malloc is builtin > to the compiler but xmalloc is not. Thank you Paul, You had exactly correct hunch, my compiler flags did not have proper include directory def

Re: combining large xmalloc and setvbuf

2012-11-17 Thread Paul Eggert
I'd try compiling with gcc -Wall. Most likely you have a prototype missing. malloc is builtin to the compiler but xmalloc is not.

combining large xmalloc and setvbuf

2012-11-17 Thread Sami Kerola
Hello, While adding a gnulib (git describe v0.0-7694-g0dc4348) to a project I noticed that one of the commands did not work after malloc() calls where replaced with xmalloc(). After a bit of debugging I were able to write a small program which demonstrates what went wrong. -- snip #include "confi