aboutsummaryrefslogtreecommitdiff
path: root/libbb/obscure.c
diff options
context:
space:
mode:
authormjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
committermjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
commite901c15d890dbbdce4c086963cb1513653fc46b5 (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /libbb/obscure.c
parent40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff)
downloadbusybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/obscure.c')
-rw-r--r--libbb/obscure.c6
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)