projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0649018
)
use g_snprintf instead of sprintf
author
Dana Jansens
<danakj@orodu.net>
Tue, 11 Nov 2003 11:59:50 +0000
(11:59 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 11 Nov 2003 11:59:50 +0000
(11:59 +0000)
openbox/session.c
patch
|
blob
|
history
diff --git
a/openbox/session.c
b/openbox/session.c
index 107abe4eb2ea5bc74b3606cdd1b5a4936febd54a..54ce34ed4b64544c723f1bae50e0bf215a6b3f35 100644
(file)
--- 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);