aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/format.c')
-rw-r--r--src/vlib/format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/format.c b/src/vlib/format.c
index 7de6417be69..98010620a5d 100644
--- a/src/vlib/format.c
+++ b/src/vlib/format.c
@@ -198,7 +198,7 @@ unformat_vlib_tmpfile (unformat_input_t * input, va_list * args)
return 0;
/* Brain-police user path input */
- if (strstr ((char *) filename, "..") || index ((char *) filename, '/'))
+ if (strstr ((char *) filename, "..") || strchr ((char *) filename, '/'))
{
vec_free (filename);
return 0;