git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14ac22b
)
change pstrcpy() in setup_pwret() to fstrcpy() since we are
author
Gerald Carter
<jerry@samba.org>
Tue, 13 Feb 2001 07:17:07 +0000
(07:17 +0000)
committer
Gerald Carter
<jerry@samba.org>
Tue, 13 Feb 2001 07:17:07 +0000
(07:17 +0000)
using fstrings. Spotted by Elrond. Thanks :-)
jerry
(This used to be commit
a55a4fea9728550c4d28b05910c0b7d5080714b3
)
source3/lib/system.c
patch
|
blob
|
history
diff --git
a/source3/lib/system.c
b/source3/lib/system.c
index 48a8a3f687fd017b4fc03091d80b6ac30290a13e..5557aa8735d8c0da6b60d54541c824b14d498add 100644
(file)
--- a/
source3/lib/system.c
+++ b/
source3/lib/system.c
@@
-595,13
+595,13
@@
static struct passwd *setup_pwret(struct passwd *pass)
if (pass->pw_name)
{
pw_ret.pw_name = pw_name;
-
p
strcpy(pw_ret.pw_name, pass->pw_name);
+
f
strcpy(pw_ret.pw_name, pass->pw_name);
}
if (pass->pw_passwd)
{
pw_ret.pw_passwd = pw_passwd;
-
p
strcpy(pw_ret.pw_passwd, pass->pw_passwd);
+
f
strcpy(pw_ret.pw_passwd, pass->pw_passwd);
}
return &pw_ret;