projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2780dc1
)
Secure coding
author
Nelson Ferreira
<nelson.ferreira@ieee.org>
Fri, 30 Sep 2011 23:09:41 +0000
(19:09 -0400)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Fri, 30 Sep 2011 23:09:41 +0000
(19:09 -0400)
* src/bloom.c (print_bloom): use write_fmt_string instead of snprintf
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/bloom.c
patch
|
blob
|
history
diff --git
a/src/bloom.c
b/src/bloom.c
index
b2abc37
..
7f873d8
100644
(file)
--- a/
src/bloom.c
+++ b/
src/bloom.c
@@
-872,13
+872,9
@@
mark_bloom(Lisp_Object obj)
static void
print_bloom(Lisp_Object obj, Lisp_Object printcharfun, int escapeflag)
{
- char *tmp = alloca(96);
-
- snprintf(tmp, 95, "#<bloom-filter :order %u :degree %u :size %u>",
- XBLOOM_ORDER(obj), XBLOOM_DEGREE(obj), XBLOOM_SIZE(obj));
-
- write_c_string(tmp, printcharfun);
-
+ write_fmt_string(printcharfun,
+ "#<bloom-filter :order %u :degree %u :size %u>",
+ XBLOOM_ORDER(obj), XBLOOM_DEGREE(obj), XBLOOM_SIZE(obj));
if (escapeflag);
}