[CalendarServer-changes] [9714] CalendarServer/trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 16 14:49:51 PDT 2012


Revision: 9714
          http://trac.macosforge.org/projects/calendarserver/changeset/9714
Author:   glyph at apple.com
Date:     2012-08-16 14:49:51 -0700 (Thu, 16 Aug 2012)
Log Message:
-----------
`#` means `Py_ssize_t`, always, regardless of what the documentation says.

Modified Paths:
--------------
    CalendarServer/trunk/twext/python/sendmsg.c

Property Changed:
----------------
    CalendarServer/trunk/

Modified: CalendarServer/trunk/twext/python/sendmsg.c
===================================================================
--- CalendarServer/trunk/twext/python/sendmsg.c	2012-08-16 19:46:22 UTC (rev 9713)
+++ CalendarServer/trunk/twext/python/sendmsg.c	2012-08-16 21:49:51 UTC (rev 9714)
@@ -113,7 +113,7 @@
 
     int fd;
     int flags = 0;
-    Py_ssize_t sendmsg_result;
+    Py_ssize_t sendmsg_result, iovec_length;
     struct msghdr message_header;
     struct iovec iov[1];
     PyObject *ancillary = NULL;
@@ -123,12 +123,14 @@
             args, keywds, "it#|iO:sendmsg", kwlist,
             &fd,
             &iov[0].iov_base,
-            &iov[0].iov_len,
+            &iovec_length,
             &flags,
             &ancillary)) {
         return NULL;
     }
 
+    iov[0].iov_len = iovec_length;
+
     message_header.msg_name = NULL;
     message_header.msg_namelen = 0;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120816/3681ef29/attachment-0001.html>


More information about the calendarserver-changes mailing list