mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
+
This commit is contained in:
parent
dcbc8cd81a
commit
d71313dd14
2 changed files with 3 additions and 3 deletions
|
@ -85,9 +85,9 @@ inline PSYC_Packet PSYC_newPacket(PSYC_ModifierArray *routing,
|
|||
p.contentLength += data->length + 1; // data\n
|
||||
|
||||
// set total length: routing-header \n content |\n
|
||||
p.length = p.routingLength + 1 + p.contentLength + sizeof(PSYC_PACKET_DELIMITER) - 2;
|
||||
p.length = p.routingLength + 1 + p.contentLength + sizeof(PSYC_PACKET_DELIMITER) - 2;
|
||||
if (flag == PSYC_PACKET_NEED_LENGTH) // add length of length if needed
|
||||
p.length += log10((double)data->length) + 1;
|
||||
p.length += log10((double)data->length) + 1;
|
||||
|
||||
return p;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "psyc/lib.h"
|
||||
#include "psyc/render.h"
|
||||
|
||||
inline int PSYC_renderModifier(PSYC_Modifier *m, char *buffer)
|
||||
inline size_t PSYC_renderModifier(PSYC_Modifier *m, char *buffer)
|
||||
{
|
||||
size_t cur = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue