r17619 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17618‎ | r17619 | r17620 >
Date:14:08, 13 November 2006
Author:river
Status:old
Tags:
Comment:
revere space in _http_path before copying
Modified paths:
  • /trunk/willow/src/willow/whttp_header.cc (modified) (history)

Diff [purge]

Index: trunk/willow/src/willow/whttp_header.cc
@@ -430,7 +430,7 @@
431431 else return -1;
432432
433433 _response = str10toint(errcode, codelen);
434 -
 434+ _http_path.reserve(codelen + desclen + 1);
435435 _http_path.assign(errcode, errcode + codelen);
436436 _http_path += " ";
437437 _http_path.append(errdesc, errdesc + desclen);