"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib-lua/dlua-pushstring.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

dlua-pushstring.c  (dovecot-2.3.16):dlua-pushstring.c  (dovecot-2.3.17)
/* Copyright (c) 2021 Dovecot authors, see the included COPYING file */ /* Copyright (c) 2021 Dovecot authors, see the included COPYING file */
#include "lib.h" #include "lib.h"
#include "str.h" #include "str.h"
#include "dlua-script-private.h" #include "dlua-script-private.h"
const char *dlua_pushvfstring(lua_State *L, const char *fmt, va_list argp) const char *dlua_push_vfstring(lua_State *L, const char *fmt, va_list argp)
{ {
const char *str; const char *str;
T_BEGIN { T_BEGIN {
str = t_strdup_vprintf(fmt, argp); str = t_strdup_vprintf(fmt, argp);
(void)lua_pushstring(L, str); (void)lua_pushstring(L, str);
str = lua_tostring(L, -1); str = lua_tostring(L, -1);
} T_END; } T_END;
return str; return str;
} }
const char *dlua_pushfstring(lua_State *L, const char *fmt, ...) const char *dlua_push_fstring(lua_State *L, const char *fmt, ...)
{ {
const char *str; const char *str;
va_list argp; va_list argp;
va_start(argp, fmt); va_start(argp, fmt);
str = dlua_pushvfstring(L, fmt, argp); str = dlua_push_vfstring(L, fmt, argp);
va_end(argp); va_end(argp);
return str; return str;
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)