summaryrefslogtreecommitdiff
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-07-28 10:23:27 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-07-28 10:23:27 +0000
commit98e008d577c0f90c633ea24f63dae6d4cbfa179b (patch)
tree4dc3d8c8799e6f94b2e78cf8b68e366d334593a4 /Objects/stringobject.c
parentc7429c60f6c0423df8355e17f80cba0f6f7e5b3f (diff)
downloadcpython-98e008d577c0f90c633ea24f63dae6d4cbfa179b.tar.gz
Patch #554716: Use __va_copy where available.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 5e40524a0a..bf548cdd26 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -156,8 +156,12 @@ PyString_FromFormatV(const char *format, va_list vargs)
#ifdef VA_LIST_IS_ARRAY
memcpy(count, vargs, sizeof(va_list));
#else
+#ifdef __va_copy
+ __va_copy(count, vargs);
+#else
count = vargs;
#endif
+#endif
/* step 1: figure out how large a buffer we need */
for (f = format; *f; f++) {
if (*f == '%') {