vppinfra: Fix a bug related to path_search 84/32084/3
authorRyo Nishikawa <nishikawa0320@gmail.com>
Thu, 22 Apr 2021 14:31:09 +0000 (23:31 +0900)
committerDamjan Marion <dmarion@me.com>
Tue, 27 Apr 2021 09:26:11 +0000 (09:26 +0000)
Type: fix
Signed-off-by: Ryo Nishikawa <nishikawa0320@gmail.com>
Change-Id: Iabf7e088245395ea3fff62a22266a31de3fc305e

src/vppinfra/elf_clib.c

index b76c264..d2865f8 100644 (file)
@@ -94,7 +94,7 @@ path_search (char *file)
 
   result = 0;
   if (i < vec_len (ps.path))
-    result = (char *) format (0, "%s/%s%c", ps.path[i], file);
+    result = (char *) format (0, "%s/%s%c", ps.path[i], file, 0);
 
   path_search_free (&ps);