httpd: explain why we use sprintf and why it should be fine
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 22 Nov 2016 01:23:35 +0000 (02:23 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 22 Nov 2016 01:23:35 +0000 (02:23 +0100)
commit9f8eb1ee7620020e01b3596ac7259d51ebca7a7b
treef3b597df15aa26a5aea3f45c788c7239217586ad
parent7e8218f9b26946ec3b411bc25a62b6b4278f2386
httpd: explain why we use sprintf and why it should be fine

While at it, fix a pathological case where it is not fine:
-r REALM with some 8-kbyte long REALM would overflow the buffer.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c