]> Dogcows Code - chaz/openbox/commitdiff
use g_snprintf instead of sprintf
authorDana Jansens <danakj@orodu.net>
Tue, 11 Nov 2003 11:59:50 +0000 (11:59 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 11 Nov 2003 11:59:50 +0000 (11:59 +0000)
openbox/session.c

index 107abe4eb2ea5bc74b3606cdd1b5a4936febd54a..54ce34ed4b64544c723f1bae50e0bf215a6b3f35 100644 (file)
@@ -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);
 
This page took 0.028495 seconds and 4 git commands to generate.