• Poul-Henning Kamp's avatar
    Things you didn't know about C, #7212: · f055de5b
    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@1239 d4fa192b-c00b-0410-8231-f00ffab90ce4
    f055de5b
varnishd.c 11.9 KB