From 7e958f092a146190e7899482f26e13b480f83986 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 19 Mar 2003 02:01:11 +0000 Subject: Doin't pstrcpy into fstring. Jeremy. (This used to be commit e619c50834a06b3026dc6b8603d1f88268bbdbc1) --- source3/smbd/service.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/smbd/service.c') diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 0f178b8ffc..a5e1ec4e93 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -229,13 +229,13 @@ static NTSTATUS share_sanity_checks(int snum, fstring dev) /* you can only connect to the IPC$ service as an ipc device */ if (strequal(lp_fstype(snum), "IPC")) - pstrcpy(dev,"IPC"); + fstrcpy(dev,"IPC"); if (dev[0] == '?' || !dev[0]) { if (lp_print_ok(snum)) { - pstrcpy(dev,"LPT1:"); + fstrcpy(dev,"LPT1:"); } else { - pstrcpy(dev,"A:"); + fstrcpy(dev,"A:"); } } @@ -248,7 +248,7 @@ static NTSTATUS share_sanity_checks(int snum, fstring dev) /* Behave as a printer if we are supposed to */ if (lp_print_ok(snum) && (strcmp(dev, "A:") == 0)) { - pstrcpy(dev, "LPT1:"); + fstrcpy(dev, "LPT1:"); } return NT_STATUS_OK; -- cgit