musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regex/regerror.c 4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regex/regerror.c b/src/regex/regerror.c
index 17119fff..0645b8e7 100644
--- a/src/regex/regerror.c
+++ b/src/regex/regerror.c
@@ -22,14 +22,14 @@ static const char messages[] = {
"Invalid contents of {}0円"
"Invalid character range0円"
"Out of memory0円"
- "XXX0円"
+ "Repetition not preceded by valid expression0円"
"0円Unknown error"
};
size_t regerror(int e, const regex_t *preg, char *buf, size_t size)
{
const char *s;
- for (s=messages; e && *s; e--, e+=strlen(s)+1);
+ for (s=messages; e && *s; e--, s+=strlen(s)+1);
if (!*s) s++;
return 1+snprintf(buf, size, "%s", s);
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月15日 11:46:13 +0000

AltStyle によって変換されたページ (->オリジナル) /