>Fr Sep 26 2008 23:05:59 CEST von [EMAIL PROTECTED] >Betreff: darn snprintf > > > >I've got snprintf returning MORE than the max count: > > int n = >snprintf(&converted_msg[output_length], > src - ptr +1 , "%s/", ptr); > > > >and n= 111 and stuff like that, even when src - ptr + 1 == 13 as shown by >debug! > >am I mad? > > Sam
if snprintf returns > your buffer size its to small... Maybe its an option to switch that to strbuf? that handles bufferr resizing itself..