diff options
-rw-r--r-- | lib/rfsv32.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rfsv32.cc b/lib/rfsv32.cc index 2dc5fbb..7849d97 100644 --- a/lib/rfsv32.cc +++ b/lib/rfsv32.cc @@ -441,7 +441,7 @@ fread(const u_int32_t handle, unsigned char * const buf, const u_int32_t len, u_ if ((l = a.getLen()) > 0) { memcpy(p, a.getString(), l); count += l; - p += res; + p += l; } } while ((count < len) && (l > 0)); return res; |