vppinfra: make _vec_len() read-only
[vpp.git] / src / plugins / http_static / static_server.c
index 4eafb1f..b92af89 100644 (file)
@@ -224,7 +224,7 @@ try_index_file (hss_main_t *hsm, hss_session_t *hs, u8 *path)
   u32 plen;
 
   /* Remove the trailing space */
-  _vec_len (path) -= 1;
+  vec_dec_len (path, 1);
   plen = vec_len (path);
 
   /* Append "index.html" */