OSDN Git Service

doh, forgot to copy the final \0
authorEric Andersen <andersen@codepoet.org>
Wed, 12 Apr 2006 22:49:36 +0000 (22:49 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 12 Apr 2006 22:49:36 +0000 (22:49 -0000)
ldso/ldso/dl-elf.c

index 8e21a65..eda20b5 100644 (file)
@@ -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 */