From 29133d967761908a0f1492c1b907350a076f4a01 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 24 Apr 2003 05:43:45 +0000 Subject: This is really trying to be a StrnCpy (most names will overflow the 10 char limit) (This used to be commit 0e04761abe375bfea48fa2c9ba9e1dc0d56d39f7) --- source3/smbd/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') 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)); -- cgit