From: Julien Ramseier <j.ramseier@gmail.com>
To: musl@lists.openwall.com
Subject: [PATCH] setlocale: wrong var passed to __get_locale
Date: Mon, 19 Nov 2018 17:03:14 +0100 [thread overview]
Message-ID: <62CC16E8-B5B1-451A-B041-C74529DF8EC6@gmail.com> (raw)
This was introduced by commit d88e5dfa8b989dafff4b748bfb3cba3512c8482e
diff --git a/src/locale/setlocale.c b/src/locale/setlocale.c
index 637e7aa0..2bc7b500 100644
--- a/src/locale/setlocale.c
+++ b/src/locale/setlocale.c
@@ -34,7 +34,7 @@ char *setlocale(int cat, const char *name)
part[z-p] = 0;
if (*z) p = z+1;
}
- lm = __get_locale(i, name);
+ lm = __get_locale(i, part);
if (lm == LOC_MAP_FAILED) {
UNLOCK(lock);
return 0;
next reply other threads:[~2018-11-19 16:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-19 16:03 Julien Ramseier [this message]
2018-11-19 16:49 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62CC16E8-B5B1-451A-B041-C74529DF8EC6@gmail.com \
--to=j.ramseier@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).