Branch: Tag:

2008-01-05

2008-01-05 14:28:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed bug in _sprintf() where it could return zero in some circumstances.
Fixed warning.

Rev: lib/modules/Standards.pmod/URI.pike:1.27

4:   //! absolute form, as defined in RFC 2396 and RFC 3986.      // Implemented by Johan Sundström and Johan Schön. - // $Id: URI.pike,v 1.26 2008/01/04 20:48:15 nilsson Exp $ + // $Id: URI.pike,v 1.27 2008/01/05 14:28:05 grubba Exp $      #pragma strict_types   
483:      string _sprintf(int how, mapping|void args)   { -  string look, _scheme = scheme, _host = host, getstring; +  string look, _host = host, getstring;    switch(how)    {    case 't':
491:       case 'x': // A case-mangling version, especially suited for readable hash values    if(_host) _host = lower_case(_host); +  default:    case 's':    case 'O':    getstring = (path||"") +