On Tue, Jan 2, 2018 at 12:45 PM, Simon Walter <si...@gikaku.com> 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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to