From 12373b018e985ba0bc5628dcaceb7c406a350e45 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 8 Oct 2024 07:45:17 +0200 Subject: Added -pedantic compilation flag. --- xs_random.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xs_random.h') diff --git a/xs_random.h b/xs_random.h index d076cc2..78de32a 100644 --- a/xs_random.h +++ b/xs_random.h @@ -66,7 +66,8 @@ void *xs_rnd_buf(void *buf, int size) /* fill with full integers */ while (n--) { xs_rnd_int32_d(&s); - p = memcpy(p, &s, sizeof(s)) + sizeof(s); + memcpy(p, &s, sizeof(s)); + p += sizeof(s); } if ((n = size % sizeof(s))) { -- cgit