+Mon Oct 21 16:16:26 1996 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * util_ordering.c (g_queue_internalize, g_queue_externalize):
+ Fixed typo so that the remaining length field is set
+ correctly.
+
Sat Oct 19 00:39:25 1996 Theodore Y. Ts'o <tytso@mit.edu>
* util_ordering.c (g_queue_externalize, g_queue_internalize,
{
memcpy(*buf, vqueue, sizeof(queue));
*buf += sizeof(queue);
- *lenremain += sizeof(queue);
+ *lenremain -= sizeof(queue);
return 0;
}
return ENOMEM;
memcpy(q, *buf, sizeof(queue));
*buf += sizeof(queue);
- *lenremain += sizeof(queue);
+ *lenremain -= sizeof(queue);
*vqueue = q;
return 0;
}