summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-03-16 03:43:14 +0000
committerAndrew Tridgell <tridge@samba.org>2001-03-16 03:43:14 +0000
commitf572cd9e35830c509968b29cb5f606bb9f9b929b (patch)
tree16baad48b56b78329ec5cf2a1930ae1e5f64675f /source3/smbd
parent7906e8168cf717f19ba69435ddf353ce7db110db (diff)
downloadsamba-f572cd9e35830c509968b29cb5f606bb9f9b929b.tar.gz
samba-f572cd9e35830c509968b29cb5f606bb9f9b929b.tar.bz2
samba-f572cd9e35830c509968b29cb5f606bb9f9b929b.zip
converted reply_printqueue
(This used to be commit 70d6b09ac9fbd612960fa02fad5adbf6d87c24ce)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index b559b9bdc5..35a4b0f54a 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -408,8 +408,8 @@ int reply_ioctl(connection_struct *conn,
{
case IOCTL_QUERY_JOB_INFO:
SSVAL(p,0,fsp->print_jobid); /* Job number */
- StrnCpy(p+2, global_myname, 15); /* Our NetBIOS name */
- StrnCpy(p+18, lp_servicename(SNUM(conn)), 13); /* Service name */
+ srvstr_push(outbuf, p+2, global_myname, 15, STR_TERMINATE|STR_CONVERT|STR_ASCII);
+ srvstr_push(outbuf, p+18, lp_servicename(SNUM(conn)), 13, STR_TERMINATE|STR_CONVERT|STR_ASCII);
break;
}
@@ -3270,7 +3270,7 @@ int reply_printqueue(connection_struct *conn,
SSVAL(p,5, queue[i].job);
SIVAL(p,7,queue[i].size);
CVAL(p,11) = 0;
- StrnCpy(p+12,queue[i].user,16);
+ srvstr_push(outbuf, p+12, queue[i].user, 16, STR_CONVERT|STR_ASCII);
p += 28;
}