]> Dogcows Code - chaz/openbox/blobdiff - openbox/session.c
use g_snprintf instead of sprintf
[chaz/openbox] / 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.022363 seconds and 4 git commands to generate.