summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/librsgt.c')
-rw-r--r--runtime/librsgt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/librsgt.c b/runtime/librsgt.c
index e49011f4..92b0d412 100644
--- a/runtime/librsgt.c
+++ b/runtime/librsgt.c
@@ -483,7 +483,7 @@ sigblkInit(gtfile gf)
static inline void
bufAddIV(gtfile gf, uchar *buf, size_t *len)
{
- memcpy(buf+*len, &gf->IV, sizeof(gf->IV));
+ memcpy(buf+*len, gf->IV, hashOutputLengthOctets(gf->hashAlg));
*len += sizeof(gf->IV);
}