diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-08-29 18:19:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-08-29 18:19:23 +0000 |
commit | b0486b1cbdc8c1fca9a70c4c3cb8b774fc8c57e4 (patch) | |
tree | a7bb850ec9be5f8ecf54e078807101066c429194 /catgets | |
parent | ae1b66e6c88e455184140b5250a71f1dbfbf46aa (diff) | |
download | glibc-b0486b1cbdc8c1fca9a70c4c3cb8b774fc8c57e4.tar.gz |
(catopen): Correctly determine length of string in NLSPATH environment
variable.
Diffstat (limited to 'catgets')
-rw-r--r-- | catgets/catgets.c | 2 |
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); |