use g_snprintf instead of sprintf
This commit is contained in:
parent
064901801e
commit
b338e27b32
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue