summaryrefslogtreecommitdiff
path: root/libopenjpeg
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2005-05-26 12:07:46 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2005-05-26 12:07:46 +0000
commit7e518596e03caf8f2793697dcbe1d9f70f949de0 (patch)
tree34026fce51374d544b7b74aed72cfe3f302efebe /libopenjpeg
parentf9eb8f93c29679657d539b8d17e56d889d816a2e (diff)
cio_read_to_buf(...) and cio_write_from_buf(...) functions syntax modification
Diffstat (limited to 'libopenjpeg')
-rw-r--r--libopenjpeg/cio.c8
-rw-r--r--libopenjpeg/cio.h4
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