• Poul-Henning Kamp's avatar
    Things you didn't know about C, #7212: · 3dbaf9e1
    Poul-Henning Kamp authored
    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: http://www.varnish-cache.org/svn/trunk/varnish-cache@1239 d4fa192b-c00b-0410-8231-f00ffab90ce4
    3dbaf9e1
varnishd.c 11.9 KB