On Tue, Jan 2, 2018 at 12:45 PM, Simon Walter <simon@xxxxxxxxxx> wrote: > > It looks like apr_bucket_read returns the memory location of the > original string and does no manipulation like null termination when > splitting. > > So I guess that I cannot simply call printf, and that I must either use > putchar with a loop or snprintf, strncpy, memcpy, etc. Or you could use a format like "printf("%.*s", (int)len, str)" to take the length returned by apr_bucket_read into account. Regards, Yann. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx