Re: [dev] [sic] tok and ctok functions

From: anonymous <aim0shei_AT_lavabit.com>
Date: Thu, 15 Apr 2010 16:22:17 +0400

Another two bugs.

Lines 70-73:
if(!c || !isspace(msg[1]))
        sout("%s", msg);
else {
        if(msg[1])

If line 73 is executed, isspace(msg[1]) is true. So it can't be equal
to '\0'. Therefore, condition `msg[1]` is always true.

* * *

When you type

:a<tab>bcd

line 97

    sout("%c %s", c, msg);

will send "a bcd" (tab replaced by space) to server.
Received on Thu Apr 15 2010 - 12:22:17 UTC

This archive was generated by hypermail 2.2.0 : Thu Apr 15 2010 - 12:24:02 UTC