Thread View: comp.bugs.sys5
1 messages
1 total messages
Started by Linwood Varney
Wed, 09 Aug 1989 06:23
Streams adjmsg bug
Author: Linwood Varney
Date: Wed, 09 Aug 1989 06:23
Date: Wed, 09 Aug 1989 06:23
23 lines
1110 bytes
1110 bytes
The streams function adjmsg() will fail in certain cases if trimming
bytes from the end of a message. If adjmsg() is passed a message that
contains more than one message block, or more specifically if the last
message block is larger than the number of bytes you wish to trim off.
The while statement in the function adjmsg():
bp = mp;
while (len && bp) {
bp = mp;
fails the second time through since bp is also used within an inner loop.
If the while statement is changed to:
/* bp = mp; (statement no longer needed */
while (len) {
bp = mp;
the function works as documented.
- Linwood Varney linwood@ingr.com
Network Communications Intergraph Corp.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads