Skip to content

Commit 8940f34

Browse files
authored
Merge pull request #78 from bluca/gcc7
Problem: build fails with GCC 7
2 parents 17dc203 + 419f121 commit 8940f34

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

project.xml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name = "filemq"
33
description = "A FileMQ server and client"
44
script = "zproject.gsl"
5+
url = "https://github.com/zeromq/filemq"
6+
repository = "https://github.com/zeromq/filemq"
57
>
68
<include filename = "license.xml" />
79
<version major = "2" minor = "0" patch = "0" />

src/fmq_client_engine.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ s_client_new (zsock_t *cmdpipe, zsock_t *msgpipe)
196196
self->msgpipe = msgpipe;
197197
self->state = start_state;
198198
self->event = NULL_event;
199-
snprintf (self->log_prefix, sizeof (self->log_prefix) - 1,
199+
snprintf (self->log_prefix, sizeof (self->log_prefix),
200200
"%6d:%-33s", randof (1000000), "fmq_client");
201201
self->dealer = zsock_new (ZMQ_DEALER);
202202
if (self->dealer)

src/fmq_server_engine.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ engine_set_log_prefix (client_t *client, const char *string)
270270
{
271271
if (client) {
272272
s_client_t *self = (s_client_t *) client;
273-
snprintf (self->log_prefix, sizeof (self->log_prefix) - 1,
273+
snprintf (self->log_prefix, sizeof (self->log_prefix),
274274
"%6d:%-33s", self->unique_id, string);
275275
}
276276
}

0 commit comments

Comments
 (0)