Fix svn.client copy.
authorJelmer Vernooij <jelmer@jelmer.uk>
Fri, 11 Aug 2017 01:54:41 +0000 (01:54 +0000)
committerJelmer Vernooij <jelmer@jelmer.uk>
Fri, 11 Aug 2017 01:54:41 +0000 (01:54 +0000)
subvertpy/client.c

index 2e9911dd59e47ff569b78295a81df8e47d595351..a19e407fedb942184edaa7d4441b3c41ab85c69d 100644 (file)
@@ -1259,7 +1259,7 @@ static PyObject *client_copy(PyObject *self, PyObject *args, PyObject *kwargs)
         apr_pool_destroy(temp_pool);
         return NULL;
     }
-    APR_ARRAY_IDX(src_paths, 0, svn_client_copy_source_t *) = &src;
+    APR_ARRAY_PUSH(src_paths, svn_client_copy_source_t *) = &src;
 #endif
 #if ONLY_SINCE_SVN(1, 9)
     RUN_SVN_WITH_POOL(temp_pool, svn_client_copy7(src_paths,