diff options
Diffstat (limited to 'elf/dl-object.c')
-rw-r--r-- | elf/dl-object.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/elf/dl-object.c b/elf/dl-object.c index 398628aa1b..6196cd7329 100644 --- a/elf/dl-object.c +++ b/elf/dl-object.c @@ -142,9 +142,10 @@ _dl_new_object (char *realname, const char *libname, int type, goto out; } - /* Find the end of the path and see whether we have to add - a slash. */ - cp = __rawmemchr (origin, '\0'); + /* Find the end of the path and see whether we have to add a + slash. We could use rawmemchr but this need not be + fast. */ + cp = (strchr) (origin, '\0'); if (cp[-1] != '/') *cp++ = '/'; } |