]> err.no Git - varnish/commit
From the "What has the world come to ?" department:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 15 Jul 2007 11:25:27 +0000 (11:25 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 15 Jul 2007 11:25:27 +0000 (11:25 +0000)
commitb4a056ca6bf3d137639a2c1e55bfb9fc54984a20
tree4d22e7c886dc5ef28dcd6ca77030c37331fa00d4
parentcda2e888779485a838acee158490bf06a63ddbaf
From the "What has the world come to ?" department:

It used to be that sscanf(3) would walk along the proffered string
and do what the format string was told, and as long as the format
terminated before the input string, the NUL termination was not
relevant.

Sometime in the last 20 years, sscanf started doing a strlen on the
passed argument changing this behaviour.

Give sscanf the NUL it wants.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1705 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/lib/libvarnish/cli_common.c