> But I also think that the original vasprintf() code is fine. I think > Peter is seeing a bug from somewhere else. Sorry, you were right. The bug was in my code, now I've fixed (see www.samba.org/~tridge/psomogyi). I've reverted debug.c to original state. I apologize detecting wrong error. Peter