summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/printing.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 31b802d3fb..0c9570b8c7 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2352,8 +2352,7 @@ pause, or resume print job. User name: %s. Printer name: %s.",
ssize_t print_job_write(struct tevent_context *ev,
struct messaging_context *msg_ctx,
- int snum, uint32 jobid, const char *buf, SMB_OFF_T pos,
- size_t size)
+ int snum, uint32 jobid, const char *buf, size_t size)
{
const char* sharename = lp_const_servicename(snum);
ssize_t return_code;
@@ -2372,7 +2371,7 @@ ssize_t print_job_write(struct tevent_context *ev,
return -1;
}
- return_code = write_data_at_offset(pjob->fd, buf, size, pos);
+ return_code = write_data_at_offset(pjob->fd, buf, size, (SMB_OFF_T)-1);
if (return_code>0) {
pjob->size += size;