freebsd-ports/www/dtse/files/patch-HttpHandler.cpp
Martin Wilke 0add8117f1 - Fix build with clang
PR:		163731
Submitted by:	Douglas William Thrift <douglas@douglasthrift.net> (maintainer)
2012-01-27 17:34:13 +00:00

11 lines
374 B
C++

--- ./HttpHandler.cpp.orig 2008-08-23 04:00:12.000000000 -0700
+++ ./HttpHandler.cpp 2011-12-30 17:37:16.000000000 -0800
@@ -427,7 +427,7 @@
void HttpHandler::putline(const string& line)
{
- sprintf(buffer, "%s\r\n", line.c_str());
+ snprintf(buffer, BUFSIZ + 1, "%s\r\n", line.c_str());
#ifndef _OpenSSL_
if (send(http, buffer, strlen(buffer), 0) == SOCKET_ERROR)