summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-08-29 18:19:23 +0000
committerUlrich Drepper <drepper@redhat.com>1997-08-29 18:19:23 +0000
commitb0486b1cbdc8c1fca9a70c4c3cb8b774fc8c57e4 (patch)
treea7bb850ec9be5f8ecf54e078807101066c429194
parentae1b66e6c88e455184140b5250a71f1dbfbf46aa (diff)
(catopen): Correctly determine length of string in NLSPATH environment
variable.
-rw-r--r--catgets/catgets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/catgets/catgets.c b/catgets/catgets.c
index 9228f970d6..824d39eace 100644
--- a/catgets/catgets.c
+++ b/catgets/catgets.c
@@ -87,7 +87,7 @@ catopen (const char *cat_name, int flag)
if (nlspath != NULL && *nlspath != '\0')
{
/* Append the system dependent directory. */
- size_t len = strlen (nlspath + 1 + sizeof NLSPATH);
+ size_t len = strlen (nlspath) + 1 + sizeof NLSPATH;
char *tmp = alloca (len);
__stpcpy (__stpcpy (__stpcpy (tmp, nlspath), ":"), NLSPATH);