From: msweet Date: Wed, 18 Feb 2015 18:24:39 +0000 (+0000) Subject: Eliminate usage of sprintf. X-Git-Tag: v2.2b1~336 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5629a813c44fbc8a8d7d5ba3e5ab4fc902970688;p=thirdparty%2Fcups.git Eliminate usage of sprintf. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12523 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/scheduler/client.c b/scheduler/client.c index 8169895cc6..c5a9960881 100644 --- a/scheduler/client.c +++ b/scheduler/client.c @@ -3656,7 +3656,7 @@ pipe_command(cupsd_client_t *con, /* I - Client connection */ snprintf(script_filename, sizeof(script_filename), "SCRIPT_FILENAME=%s%s", DocumentRoot, script_name + 12); - sprintf(server_port, "SERVER_PORT=%d", con->serverport); + snprintf(server_port, sizeof(server_port), "SERVER_PORT=%d", con->serverport); if (httpGetField(con->http, HTTP_FIELD_HOST)[0]) {