summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index d96e9ae056..0b51475391 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -553,7 +553,7 @@ BOOL print_notify_pid_list(const char *printername, TALLOC_CTX *mem_ctx, size_t
pid_list = NULL;
}
- for( i = 0, offset = 0; offset < data.dsize; offset += 8, i++)
+ for( i = 0, offset = 0; i < num_pids; offset += 8, i++)
pid_list[i] = (pid_t)IVAL(data.dptr, offset);
*pp_pid_list = pid_list;