summaryrefslogtreecommitdiff
path: root/source/lib/username.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-09-26 18:55:29 +0000
committerJeremy Allison <jra@samba.org>1997-09-26 18:55:29 +0000
commite7eb1f044d3101679dc7a118820ea5efe0cd837c (patch)
tree08728855970cb96ca587b1bf241304f579d85c22 /source/lib/username.c
parent2c5587a6fe425b1cc57cf28e92e77ba84f08ce33 (diff)
downloadsamba-e7eb1f044d3101679dc7a118820ea5efe0cd837c.tar.gz
Adding Andrews buffer overflow fixes into the main branch.
Jeremy (jallison@whistle.com)
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 a78a344eb89..a9f64259916 100644
--- a/source/lib/username.c
+++ b/source/lib/username.c
@@ -65,7 +65,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;
}
@@ -191,7 +191,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);
}