diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-01-19 09:33:45 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-01-19 09:33:45 +0000 |
commit | e7424de27902be604424183742a8198b0a2f9450 (patch) | |
tree | 4f15e92b5599fa5b502335546abc98125397152a /rdiff-backup/rdiff_backup/_librsyncmodule.c | |
parent | ab14e368eaff882e38f2a17642c2779facabc842 (diff) | |
download | rdiff-backup-e7424de27902be604424183742a8198b0a2f9450.tar.gz |
Fixed segfault bug on openbsd+sparc systems
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r0-10@263 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/_librsyncmodule.c')
-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); } |