summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-23 18:14:22 +0000
committerJeremy Allison <jra@samba.org>2001-03-23 18:14:22 +0000
commit19faeac3472539f4fb5713f777d85cd5e66fd675 (patch)
treef5231d177856aaf8a766ac1926722b97296ce6bd /source3/smbd
parenta44721750944af9beb46f169a49a439b614a8622 (diff)
downloadsamba-19faeac3472539f4fb5713f777d85cd5e66fd675.tar.gz
samba-19faeac3472539f4fb5713f777d85cd5e66fd675.tar.bz2
samba-19faeac3472539f4fb5713f777d85cd5e66fd675.zip
Made the fixes Andrew suggested to asci string code to use srvstr_push.
Jeremy. (This used to be commit 1391aa6a6fbe8391a4421f5770da40556f011bb8)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index b9c8ab086c..58e8056c31 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2220,8 +2220,8 @@ static int call_trans2ioctl(connection_struct *conn, char* inbuf,
CAN ACCEPT THIS IN UNICODE. JRA. */
SSVAL(pdata,0,fsp->print_jobid); /* Job number */
- StrnCpy(pdata+2, global_myname, 15); /* Our NetBIOS name */
- StrnCpy(pdata+18, lp_servicename(SNUM(conn)), 13); /* Service name */
+ srvstr_push( outbuf, pdata + 2, global_myname, 15, STR_CONVERT|STR_ASCII|STR_TERMINATE); /* Our NetBIOS name */
+ srvstr_push( outbuf, pdata+18, lp_servicename(SNUM(conn)), 13, STR_CONVERT|STR_ASCII|STR_TERMINATE); /* Service name */
send_trans2_replies(outbuf,bufsize,*pparams,0,*ppdata,32);
return(-1);
} else {