1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

converted reply_printqueue

(This used to be commit 70d6b09ac9fbd612960fa02fad5adbf6d87c24ce)
This commit is contained in:
Andrew Tridgell 2001-03-16 03:43:14 +00:00
parent 7906e8168c
commit f572cd9e35

View File

@ -408,8 +408,8 @@ int reply_ioctl(connection_struct *conn,
{ {
case IOCTL_QUERY_JOB_INFO: case IOCTL_QUERY_JOB_INFO:
SSVAL(p,0,fsp->print_jobid); /* Job number */ SSVAL(p,0,fsp->print_jobid); /* Job number */
StrnCpy(p+2, global_myname, 15); /* Our NetBIOS name */ srvstr_push(outbuf, p+2, global_myname, 15, STR_TERMINATE|STR_CONVERT|STR_ASCII);
StrnCpy(p+18, lp_servicename(SNUM(conn)), 13); /* Service name */ srvstr_push(outbuf, p+18, lp_servicename(SNUM(conn)), 13, STR_TERMINATE|STR_CONVERT|STR_ASCII);
break; break;
} }
@ -3270,7 +3270,7 @@ int reply_printqueue(connection_struct *conn,
SSVAL(p,5, queue[i].job); SSVAL(p,5, queue[i].job);
SIVAL(p,7,queue[i].size); SIVAL(p,7,queue[i].size);
CVAL(p,11) = 0; 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; p += 28;
} }