diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2003-03-19 09:13:01 +0000 |
commit | cad5364599eb5062d59e0c397ed638ddd61a8d5d (patch) | |
tree | a318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/obscure.c | |
parent | e01f9662a5bd5d91be4f6b3941b57fff73cd5af1 (diff) | |
download | busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.gz busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.tar.bz2 busybox-w32-cad5364599eb5062d59e0c397ed638ddd61a8d5d.zip |
Major coreutils update.
Diffstat (limited to 'libbb/obscure.c')
-rw-r--r-- | libbb/obscure.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/obscure.c b/libbb/obscure.c index 588ef5af6..1a99b7cf9 100644 --- a/libbb/obscure.c +++ b/libbb/obscure.c | |||
@@ -143,7 +143,7 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp) | |||
143 | return "too simple"; | 143 | return "too simple"; |
144 | 144 | ||
145 | msg = NULL; | 145 | msg = NULL; |
146 | newmono = str_lower(xstrdup(newval)); | 146 | newmono = str_lower(bb_xstrdup(newval)); |
147 | lenwrap = strlen(old) * 2 + 1; | 147 | lenwrap = strlen(old) * 2 + 1; |
148 | wrapped = (char *) xmalloc(lenwrap); | 148 | wrapped = (char *) xmalloc(lenwrap); |
149 | str_lower(strcpy(wrapped, old)); | 149 | str_lower(strcpy(wrapped, old)); |
@@ -208,8 +208,8 @@ obscure_msg(const char *old, const char *newval, const struct passwd *pwdp) | |||
208 | if (oldlen <= maxlen && newlen <= maxlen) | 208 | if (oldlen <= maxlen && newlen <= maxlen) |
209 | return NULL; | 209 | return NULL; |
210 | 210 | ||
211 | new1 = (char *) xstrdup(newval); | 211 | new1 = (char *) bb_xstrdup(newval); |
212 | old1 = (char *) xstrdup(old); | 212 | old1 = (char *) bb_xstrdup(old); |
213 | if (newlen > maxlen) | 213 | if (newlen > maxlen) |
214 | new1[maxlen] = '\0'; | 214 | new1[maxlen] = '\0'; |
215 | if (oldlen > maxlen) | 215 | if (oldlen > maxlen) |