diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/shm_rdrbuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/shm_rdrbuff.c b/src/lib/shm_rdrbuff.c index 6e3dbca4..12e29bef 100644 --- a/src/lib/shm_rdrbuff.c +++ b/src/lib/shm_rdrbuff.c @@ -652,5 +652,5 @@ void shm_du_buff_truncate(struct shm_du_buff * sdb, assert(sdb); assert(len <= sdb->size); - sdb->du_tail -= sdb->size - len; + sdb->du_tail = sdb->du_head + len; } |