diff options
Diffstat (limited to 'scheduler/client.c')
-rw-r--r-- | scheduler/client.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scheduler/client.c b/scheduler/client.c index c2ee8f12a..621394436 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -3471,8 +3471,7 @@ pipe_command(cupsd_client_t *con, /* I - Client connection */ } else { - sprintf(content_length, "CONTENT_LENGTH=" CUPS_LLFMT, - CUPS_LLCAST con->bytes); + snprintf(content_length, sizeof(content_length), "CONTENT_LENGTH=" CUPS_LLFMT, CUPS_LLCAST con->bytes); snprintf(content_type, sizeof(content_type), "CONTENT_TYPE=%s", httpGetField(con->http, HTTP_FIELD_CONTENT_TYPE)); |