projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b7d55
)
Don't use vsprintf() anymore, but the replacement for vsnprintf()
author
nbk
<nbk>
Sun, 4 Sep 2005 16:53:58 +0000
(16:53 +0000)
committer
nbk
<nbk>
Sun, 4 Sep 2005 16:53:58 +0000
(16:53 +0000)
in libradius instead.
src/lib/log.c
patch
|
blob
|
history
diff --git
a/src/lib/log.c
b/src/lib/log.c
index
b44f2f6
..
3d78943
100644
(file)
--- a/
src/lib/log.c
+++ b/
src/lib/log.c
@@
-48,15
+48,7
@@
void librad_log(const char *fmt, ...)
char my_errstr[sizeof(librad_errstr)];
va_start(ap, fmt);
-
-#ifdef HAVE_VSNPRINTF
vsnprintf(my_errstr, sizeof(my_errstr), fmt, ap);
-#else
- vsprintf(my_errstr, fmt, ap);
- if (strlen(my_errstr) >= sizeof(my_errstr))
- /* What can we do .. */
- _exit(42);
-#endif
strcpy(librad_errstr, my_errstr);
va_end(ap);
}