From: Dana Jansens Date: Tue, 11 Nov 2003 11:59:50 +0000 (+0000) Subject: use g_snprintf instead of sprintf X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=b338e27b3217375d07bfbddd57f3372430919085;p=chaz%2Fopenbox use g_snprintf instead of sprintf --- diff --git a/openbox/session.c b/openbox/session.c index 107abe4e..54ce34ed 100644 --- a/openbox/session.c +++ b/openbox/session.c @@ -223,7 +223,7 @@ void session_startup(gint *argc, gchar ***argv) val_hint.value = &hint; val_hint.length = 1; - sprintf(pid, "%ld", (glong)getpid()); + g_snprintf(pid, sizeof(pid), "%ld", (glong) getpid()); val_pid.value = pid; val_pid.length = strlen(pid);