summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/smb_macros.h1
-rw-r--r--source3/smbd/reply.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h
index 71d4bac795..95f7e05f7d 100644
--- a/source3/include/smb_macros.h
+++ b/source3/include/smb_macros.h
@@ -100,7 +100,6 @@
/* access various service details */
#define SERVICE(snum) (lp_servicename(snum))
-#define PRINTCAP (lp_printcapname())
#define PRINTCOMMAND(snum) (lp_printcommand(snum))
#define PRINTERNAME(snum) (lp_printername(snum))
#define CAN_WRITE(conn) (!conn->read_only)
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index ef5a090243..580878fe32 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -669,7 +669,7 @@ int reply_search(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
if (!conn->dirptr)
goto SearchEmpty;
string_set(&conn->dirpath,dptr_path(dptr_num));
- fstrcpy(mask, dptr_wcard(dptr_num));
+ pstrcpy(mask, dptr_wcard(dptr_num));
}
if (can_open) {