summaryrefslogtreecommitdiff
path: root/server/subscr.c
diff options
context:
space:
mode:
authorGravatar Robert S. French <rfrench@mit.edu>1987-11-07 10:49:11 +0000
committerGravatar Robert S. French <rfrench@mit.edu>1987-11-07 10:49:11 +0000
commitd89cba883ae0feb0f596c38af78805d6ff523e1a (patch)
treea34f5734950cf5d7bc9648e10581282980779ddb /server/subscr.c
parenta17d3de8c1beb92278b3eed42af257f95e9a9ee9 (diff)
Fixed problem with setting the opcode after formatting the packet in
subscr_sendlist
Diffstat (limited to 'server/subscr.c')
-rw-r--r--server/subscr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/subscr.c b/server/subscr.c
index 3a3abc6..6ffe6fa 100644
--- a/server/subscr.c
+++ b/server/subscr.c
@@ -511,12 +511,12 @@ struct sockaddr_in *who;
count = found / 5 + 1; /* total # to be sent */
i = 0; /* pkt # counter */
while (found > 0) {
+ (void) sprintf(buf, "%d/%d", ++i, count);
+ reply.z_opcode = buf;
retval = ZFormatRawNoticeList(&reply,
answer,
((found > 5) ? 5 : found) * NUM_FIELDS,
reppacket, packlen, &packlen);
- (void) sprintf(buf, "%d/%d", ++i, count);
- reply.z_opcode = buf;
if (retval != ZERR_NONE) {
syslog(LOG_ERR, "subscr_sendlist format: %s",
error_message(retval));