From 7e518596e03caf8f2793697dcbe1d9f70f949de0 Mon Sep 17 00:00:00 2001 From: Francois-Olivier Devaux Date: Thu, 26 May 2005 12:07:46 +0000 Subject: [PATCH] cio_read_to_buf(...) and cio_write_from_buf(...) functions syntax modification --- libopenjpeg/cio.c | 8 ++++---- libopenjpeg/cio.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libopenjpeg/cio.c b/libopenjpeg/cio.c index 631e6ae6..f6d1c875 100644 --- a/libopenjpeg/cio.c +++ b/libopenjpeg/cio.c @@ -157,11 +157,11 @@ void cio_skip(int n) * * n : number of bytes to transfer */ -void cio_read_to_buf(unsigned char* dest_buf, int n)/* Glenn adds */ +void cio_read_to_buf(unsigned char* src_buf, int n)/* Glenn adds */ { if (cio_bp + n > cio_end) longjmp(j2k_error, 1); - memcpy(cio_bp, dest_buf, n); + memcpy(cio_bp, src_buf, n); cio_bp += n; } @@ -170,10 +170,10 @@ void cio_read_to_buf(unsigned char* dest_buf, int n)/* Glenn adds */ * * n : number of bytes to transfer */ -void cio_write_from_buf(unsigned char* src_buf, int n)/* Glenn adds */ +void cio_write_from_buf(unsigned char* dest_buf, int n)/* Glenn adds */ { if (cio_bp + n > cio_end) longjmp(j2k_error, 1); - memcpy(src_buf, cio_bp, n); + memcpy(dest_buf, cio_bp, n); cio_bp += n; } \ No newline at end of file diff --git a/libopenjpeg/cio.h b/libopenjpeg/cio.h index e24f77d1..8bf1deee 100644 --- a/libopenjpeg/cio.h +++ b/libopenjpeg/cio.h @@ -97,11 +97,11 @@ void cio_skip(int n); /* * Read n bytes, copy to buffer */ -void cio_read_to_buf(unsigned char* buf, int n);/* Glenn Pearson adds */ +void cio_read_to_buf(unsigned char* src_buf, int n);/* Glenn Pearson adds */ /* * Write n bytes, copy from buffer */ -void cio_write_from_buf(unsigned char* buf, int n);/* Glenn Pearson adds */ +void cio_write_from_buf(unsigned char* dest_buf, int n);/* Glenn Pearson adds */ #endif