Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove compat vsnprintf() (eggdrop requires posix 2001) #1523

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ AX_TYPE_SOCKLEN_T
AX_CREATE_STDINT_H([eggint.h])

# Checks for functions and their arguments.
AC_CHECK_FUNCS([clock_gettime dprintf explicit_bzero memset_explicit explicit_memset getrandom inet_aton memset_s snprintf strlcpy vsnprintf])
AC_CHECK_FUNCS([clock_gettime dprintf explicit_bzero memset_explicit explicit_memset getrandom inet_aton 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
Loading