summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-24 05:43:45 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-24 05:43:45 +0000
commit29133d967761908a0f1492c1b907350a076f4a01 (patch)
treeb72ade3bcd11841428abd29fcaffb6014fdb69ed /source3
parent5c16ca1d3a44024695261f900c530b48b0d9c87e (diff)
downloadsamba-29133d967761908a0f1492c1b907350a076f4a01.tar.gz
samba-29133d967761908a0f1492c1b907350a076f4a01.tar.bz2
samba-29133d967761908a0f1492c1b907350a076f4a01.zip
This is really trying to be a StrnCpy (most names will overflow the 10 char
limit) (This used to be commit 0e04761abe375bfea48fa2c9ba9e1dc0d56d39f7)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 9e49a0bc22..5e4f3caca7 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -73,7 +73,7 @@ static void check_for_pipe(char *fname)
{
/* special case of pipe opens */
char s[10];
- safe_strcpy(s,fname,sizeof(s)-1);
+ StrnCpy(s,fname,sizeof(s)-1);
strlower(s);
if (strstr(s,"pipe/")) {
DEBUG(3,("Rejecting named pipe open for %s\n",fname));