diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-01-02 01:07:32 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-01-02 01:07:32 +0000 |
commit | 40b01c80d615ed765e15641feafbfd2fa09ad842 (patch) | |
tree | 80e40b05dce51c97cea0c7bcfb1d3c8cb3b2820d | |
parent | b53bfd4d41252426cb050ef896676034d92e3ef7 (diff) | |
download | rdiff-backup-40b01c80d615ed765e15641feafbfd2fa09ad842.tar.gz |
Fixed seg fault problem on sparc64/openbsd
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@258 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r-- | rdiff-backup/rdiff_backup/_librsyncmodule.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/rdiff-backup/rdiff_backup/_librsyncmodule.c b/rdiff-backup/rdiff_backup/_librsyncmodule.c index 6fca4cc..9b24d6a 100644 --- a/rdiff-backup/rdiff_backup/_librsyncmodule.c +++ b/rdiff-backup/rdiff_backup/_librsyncmodule.c @@ -70,7 +70,7 @@ static PyObject * _librsync_sigmaker_cycle(_librsync_SigMakerObject *self, PyObject *args) { char *inbuf, outbuf[RS_JOB_BLOCKSIZE]; - long inbuf_length; + int inbuf_length; rs_buffers_t buf; rs_result result; @@ -91,7 +91,7 @@ _librsync_sigmaker_cycle(_librsync_SigMakerObject *self, PyObject *args) } return Py_BuildValue("(ils#)", (result == RS_DONE), - inbuf_length - (long)buf.avail_in, + (long)inbuf_length - (long)buf.avail_in, outbuf, RS_JOB_BLOCKSIZE - (long)buf.avail_out); } @@ -168,7 +168,7 @@ _librsync_new_deltamaker(PyObject* self, PyObject* args) { _librsync_DeltaMakerObject* dm; char *sig_string, outbuf[RS_JOB_BLOCKSIZE]; - long sig_length; + int sig_length; rs_job_t *sig_loader; rs_signature_t *sig_ptr; rs_buffers_t buf; @@ -224,7 +224,7 @@ static PyObject * _librsync_deltamaker_cycle(_librsync_DeltaMakerObject *self, PyObject *args) { char *inbuf, outbuf[RS_JOB_BLOCKSIZE]; - long inbuf_length; + int inbuf_length; rs_buffers_t buf; rs_result result; @@ -244,7 +244,7 @@ _librsync_deltamaker_cycle(_librsync_DeltaMakerObject *self, PyObject *args) } return Py_BuildValue("(ils#)", (result == RS_DONE), - inbuf_length - (long)buf.avail_in, + (long)inbuf_length - (long)buf.avail_in, outbuf, RS_JOB_BLOCKSIZE - (long)buf.avail_out); } @@ -360,7 +360,7 @@ static PyObject * _librsync_patchmaker_cycle(_librsync_PatchMakerObject *self, PyObject *args) { char *inbuf, outbuf[RS_JOB_BLOCKSIZE]; - long inbuf_length; + int inbuf_length; rs_buffers_t buf; rs_result result; @@ -380,7 +380,7 @@ _librsync_patchmaker_cycle(_librsync_PatchMakerObject *self, PyObject *args) } return Py_BuildValue("(ils#)", (result == RS_DONE), - inbuf_length - (long)buf.avail_in, + (long)inbuf_length - (long)buf.avail_in, outbuf, RS_JOB_BLOCKSIZE - (long)buf.avail_out); } |