summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2022-11-30 14:14:43 +0100
committerJeremy Allison <jra@samba.org>2022-12-12 21:16:33 +0000
commit3f7c6467749f868bae66178e34f1badc57be54b1 (patch)
treec3ff2a8c3509acc67f1362cd32ed5a1fecc036ed /source3/auth
parentf9c982b5a96bed750bdff0a5243dda73c3d17587 (diff)
downloadsamba-3f7c6467749f868bae66178e34f1badc57be54b1.tar.gz
lib: Remove fstring_sub() that was used just once
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/pampass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/auth/pampass.c b/source3/auth/pampass.c
index c3c3d82c77d..c761d3e4fda 100644
--- a/source3/auth/pampass.c
+++ b/source3/auth/pampass.c
@@ -204,7 +204,7 @@ static void special_char_sub(char *buf)
static void pwd_sub(char *buf, const char *username, const char *oldpass, const char *newpass)
{
- fstring_sub(buf, "%u", username);
+ string_sub(buf, "%u", username, sizeof(fstring));
all_string_sub(buf, "%o", oldpass, sizeof(fstring));
all_string_sub(buf, "%n", newpass, sizeof(fstring));
}