From b0486b1cbdc8c1fca9a70c4c3cb8b774fc8c57e4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 29 Aug 1997 18:19:23 +0000 Subject: (catopen): Correctly determine length of string in NLSPATH environment variable. --- catgets/catgets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catgets') 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); -- cgit 1.4.1