]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Convert dump_buf_hex() to use oc_text_buf instead of sprintf
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 7 Jun 2019 16:04:41 +0000 (17:04 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 7 Jun 2019 19:29:37 +0000 (20:29 +0100)
commit669add756e0287038c68083d57b12275b80e87d5
tree9d90e36e5ebc305b82cf89de17fa0520ce7c7f52
parenta59708316ee33b84feeedb8226fd74bb8f969fc6
Convert dump_buf_hex() to use oc_text_buf instead of sprintf

I seem to recall the OpenBSD build will complain loudly about the use of
"bad" functions like sprintf. And even though this particular code does
seem to be perfectly correct, they do have a point in the general case.

Just use buf_append() for this, since that's what it was designed for.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
http.c