diff options
author | Jeremy Allison <jra@samba.org> | 1997-09-26 18:55:29 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-09-26 18:55:29 +0000 |
commit | e7eb1f044d3101679dc7a118820ea5efe0cd837c (patch) | |
tree | 08728855970cb96ca587b1bf241304f579d85c22 /source/namedbsubnet.c | |
parent | 2c5587a6fe425b1cc57cf28e92e77ba84f08ce33 (diff) | |
download | samba-e7eb1f044d3101679dc7a118820ea5efe0cd837c.tar.gz samba-e7eb1f044d3101679dc7a118820ea5efe0cd837c.tar.xz samba-e7eb1f044d3101679dc7a118820ea5efe0cd837c.zip |
Adding Andrews buffer overflow fixes into the main branch.
Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/namedbsubnet.c')
-rw-r--r-- | source/namedbsubnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/namedbsubnet.c b/source/namedbsubnet.c index 6364ebba543..4f0b647996d 100644 --- a/source/namedbsubnet.c +++ b/source/namedbsubnet.c @@ -308,11 +308,11 @@ void write_browse_list(time_t t) dump_names(); dump_workgroups(); - strcpy(fname,lp_lockdir()); + pstrcpy(fname,lp_lockdir()); trim_string(fname,NULL,"/"); strcat(fname,"/"); strcat(fname,SERVER_LIST); - strcpy(fnamenew,fname); + pstrcpy(fnamenew,fname); strcat(fnamenew,"."); f = fopen(fnamenew,"w"); |