Skip to content

Commit

Permalink
Remove compat vsnprintf() (eggdrop requires posix 2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ortmann committed Jan 11, 2024
1 parent bf2c80b commit 5e1e6d3
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 655 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ AX_TYPE_SOCKLEN_T
AX_CREATE_STDINT_H([eggint.h])

# Checks for functions and their arguments.
AC_CHECK_FUNCS([dprintf explicit_bzero memset_explicit explicit_memset getrandom inet_aton isascii memset_s snprintf strlcpy vsnprintf])
AC_CHECK_FUNCS([dprintf explicit_bzero memset_explicit explicit_memset getrandom inet_aton isascii memset_s snprintf strlcpy])
AC_FUNC_SELECT_ARGTYPES
EGG_FUNC_B64_NTOP
AC_FUNC_MMAP
Expand Down
4 changes: 2 additions & 2 deletions src/botmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void tandout_but(int x, const char *format, ...)

va_start(va, format);

len = egg_vsnprintf(s, sizeof s, format, va);
len = vsnprintf(s, sizeof s, format, va);
va_end(va);
if (len >= sizeof s) {
len = sizeof s - 1;
Expand Down Expand Up @@ -298,7 +298,7 @@ void botnet_send_priv (int idx, char *from, char *to, char *tobot, const char *f
va_list va;

va_start(va, format);
egg_vsnprintf(tbuf, 450, format, va);
vsnprintf(tbuf, 450, format, va);
va_end(va);
tbuf[sizeof(tbuf) - 1] = 0;

Expand Down
Loading

0 comments on commit 5e1e6d3

Please sign in to comment.