diff options
author | Eric Blake <ebb9@byu.net> | 2007-12-20 13:15:27 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2007-12-20 13:15:27 -0700 |
commit | e5573b1bad88bfabcda181b9e0125fb0c52b7d3b (patch) | |
tree | 3dacd9e1a93a97ad8432a2a7aa50f4203baa3da1 /lib/progname.c | |
parent | fc068cf4eb6814e848e4dc54e1c5cf4c30a79a6f (diff) | |
download | gnulib-e5573b1bad88bfabcda181b9e0125fb0c52b7d3b.tar.gz |
Work around circular library issue when cross-compiling.
* lib/progname.c (set_program_name): Use strncmp, not memcmp, so
that progname.o does not need to pull in rpl_memcmp.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'lib/progname.c')
-rw-r--r-- | lib/progname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/progname.c b/lib/progname.c index fa5aa8bec7..47d08c65d5 100644 --- a/lib/progname.c +++ b/lib/progname.c @@ -1,5 +1,5 @@ /* Program name management. - Copyright (C) 2001-2003, 2005-2006 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2007 Free Software Foundation, Inc. Written by Bruno Haible <haible@clisp.cons.org>, 2001. This program is free software: you can redistribute it and/or modify @@ -41,7 +41,7 @@ set_program_name (const char *argv0) slash = strrchr (argv0, '/'); base = (slash != NULL ? slash + 1 : argv0); - if (base - argv0 >= 7 && memcmp (base - 7, "/.libs/", 7) == 0) + if (base - argv0 >= 7 && strncmp (base - 7, "/.libs/", 7) == 0) argv0 = base; if (strncmp (base, "lt-", 3) == 0) argv0 = base + 3; |