BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} Fix: problem with mailing acks with more than one word



Philip Clark wrote:

Modifying the line to read:

replacestr(message,strlen(message) + 1,"+"," ");

appears to give me the correct behaviour.

yes that is correct.



The problem now is that there are 89 other calls to "replacestr". I'd expect that they could probably all be modified in the same way, but I'm too lazy to check each one.

most of them are OK as they are arrays and not pointers. Except some of those replacstr() were using strlen() but I wasn't adding the +1 in some cases. Other times I was substracting 1 to the sizeof when it shouldn't be done.

thanks again
--
Robert-Andre Croteau    BSD,MOTU
Quest Software, Inc.            Big Brother, Product Architect
http://www.quest.com/                          http://bb4.com/
+1 (514) 238-9374
        Si le bonheur ne s'achete pas alors louez le.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index