浏览代码

doh, forgot to copy the final \0

Eric Andersen 19 年之前
父节点
当前提交
1d1d5ecd33
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ldso/ldso/dl-elf.c

+ 1 - 1
ldso/ldso/dl-elf.c

@@ -162,7 +162,7 @@ search_for_named_library(const char *name, int secure, const char *path_list,
 	}
 #endif
 
-	_dl_memcpy(path, path_list, done);
+	_dl_memcpy(path, path_list, done+1);
 
 	/* Unlike ldd.c, don't bother to eliminate double //s */