aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/random_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/random_buffer.h')
-rw-r--r--src/vppinfra/random_buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/random_buffer.h b/src/vppinfra/random_buffer.h
index dded53163fc..078e9607caa 100644
--- a/src/vppinfra/random_buffer.h
+++ b/src/vppinfra/random_buffer.h
@@ -100,7 +100,7 @@ clib_random_buffer_get_data (clib_random_buffer_t * b, uword n_bytes)
clib_random_buffer_fill (b, n_words);
i = vec_len (b->buffer) - n_words;
- _vec_len (b->buffer) = i;
+ vec_set_len (b->buffer, i);
if (n_bytes < sizeof (uword))
{