ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/Search/trunk/HttpHandler.cpp
(Generate patch)

Comparing Search/trunk/HttpHandler.cpp (file contents):
Revision 385 by douglas, 2008-08-23T04:00:12-07:00 vs.
Revision 386 by douglas, 2010-08-02T01:46:44-07:00

# Line 427 | Line 427 | void HttpHandler::populate()
427  
428   void HttpHandler::putline(const string& line)
429   {
430 <        sprintf(buffer, "%s\r\n", line.c_str());
430 >        snprintf(buffer, BUFSIZ + 1, "%s\r\n", line.c_str());
431  
432   #ifndef _OpenSSL_
433          if (send(http, buffer, strlen(buffer), 0) == SOCKET_ERROR)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines