diff Objects/stringobject.c @ 48139:97607fcb7b26 legacy-trunk

Preemptively backport the relevant parts of r65420
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 02 Aug 2008 21:58:05 +0000
parents c4d24fc8ba8a
children b8c4bf393794
line wrap: on
line diff
--- a/Objects/stringobject.c	Sat Aug 02 11:26:39 2008 +0000
+++ b/Objects/stringobject.c	Sat Aug 02 21:58:05 2008 +0000
@@ -1329,7 +1329,7 @@
 string_buffer_getbuffer(PyStringObject *self, Py_buffer *view, int flags)
 {
 	return PyBuffer_FillInfo(view, (void *)self->ob_sval, Py_SIZE(self),
-				 0, flags);
+				 1, flags);
 }
 
 static PySequenceMethods string_as_sequence = {