Commit 59be36d5 authored by Niels Möller's avatar Niels Möller
Browse files

(ssh_format): Use the format string as the

debugging "clue" for the string.

Rev: src/format.c:1.44
parent 4f7c8fae
......@@ -42,8 +42,12 @@ struct lsh_string *ssh_format(const char *format, ...)
length = ssh_vformat_length(format, args);
va_end(args);
#if DEBUG_ALLOC
packet = lsh_string_alloc_clue(length, format);
#else
packet = lsh_string_alloc(length);
#endif
va_start(args, format);
ssh_vformat_write(format, length, packet->data, args);
va_end(args);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment