projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gui: Check return value of para_exec_cmdline_pid().
[paraslash.git]
/
crypt_common.c
diff --git
a/crypt_common.c
b/crypt_common.c
index 4e9622e4ee773d65c708bbf3f0b624592ed0e27b..5ad4d43d883b498989412182a54e880aa3ba0766 100644
(file)
--- a/
crypt_common.c
+++ b/
crypt_common.c
@@
-350,9
+350,12
@@
__printf_2_3 int sc_send_va_buffer(struct stream_cipher_context *scc,
{
char *msg;
int ret;
+ va_list ap;
- PARA_VSPRINTF(fmt, msg);
- ret = sc_send_buffer(scc, msg);
+ va_start(ap, fmt);
+ ret = xvasprintf(&msg, fmt, ap);
+ va_end(ap);
+ ret = sc_send_bin_buffer(scc, msg, ret);
free(msg);
return ret;
}