summaryrefslogtreecommitdiff
path: root/source/lib/username.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/username.c')
-rw-r--r--source/lib/username.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/username.c b/source/lib/username.c
index b8d152c83fd..46b8f4cb332 100644
--- a/source/lib/username.c
+++ b/source/lib/username.c
@@ -62,7 +62,7 @@ void map_username(char *user)
if (strequal(user,last_from)) {
DEBUG(3,("Mapped user %s to %s\n",user,last_to));
- strcpy(user,last_to);
+ fstrcpy(user,last_to);
return;
}
@@ -173,7 +173,7 @@ struct passwd *Get_Pwnam(char *user,BOOL allow_change)
if (ret) return(ret);
if (allow_change)
- strcpy(user,user2);
+ fstrcpy(user,user2);
return(NULL);
}