gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r11776: we need to make the string o


From: Rob Savoye
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11776: we need to make the string one character larger to keep valgrind happy.
Date: Tue, 19 Jan 2010 17:29:40 -0700
User-agent: Bazaar (2.0.2)

------------------------------------------------------------
revno: 11776
committer: Rob Savoye <address@hidden>
branch nick: trunk
timestamp: Tue 2010-01-19 17:29:40 -0700
message:
  we need to make the string one character larger to keep valgrind happy.
modified:
  libnet/http.cpp
=== modified file 'libnet/http.cpp'
--- a/libnet/http.cpp   2010-01-11 06:41:38 +0000
+++ b/libnet/http.cpp   2010-01-20 00:29:40 +0000
@@ -144,7 +144,7 @@
 HTTP::processHeaderFields(amf::Buffer *buf)
 {
   //    GNASH_REPORT_FUNCTION;
-    string head(reinterpret_cast<const char *>(buf->reference()));
+    string head(reinterpret_cast<const char *>(buf->reference()), buf->size() 
+ 1);
 
     // The end of the header block is always followed by a blank line
     string::size_type end = head.find("\r\n\r\n", 0);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]