Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vppinfra: make _vec_len() read-only
[vpp.git]
/
src
/
plugins
/
http_static
/
static_server.c
diff --git
a/src/plugins/http_static/static_server.c
b/src/plugins/http_static/static_server.c
index
4eafb1f
..
b92af89
100644
(file)
--- a/
src/plugins/http_static/static_server.c
+++ b/
src/plugins/http_static/static_server.c
@@
-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" */