]> err.no Git - varnish/commit
Things you didn't know about C, #7212:
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 29 Jan 2007 22:06:33 +0000 (22:06 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 29 Jan 2007 22:06:33 +0000 (22:06 +0000)
commit3813276936ff79e39e52c63a4d71e0c2b2461958
tree4ce3f811ee41c29c9966313deea2789cede425e3
parent58ea1c0afcdec04189e1589f60f1e3e0d03c23c2
Things you didn't know about C, #7212:

There is no sane way to get sscanf to tell you how many characters
were consumed, if you want to allow a variable number of arguments.

The special format %n is patently useless for this, because you
have to insert it at every conceiveable point in the string and
that presumes full explicit whitespace markup.

Parse -w argument "by hand", to catch illegal input like "1,INF,15"

Tripped over by:        Stein Ove Rosseland <steinove@vg.no>

Fixes: ticket #82
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1239 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/varnishd.c