viewing paste Unknown #19562 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14
        // send back message to the speaker
        if( is_fake ) {
                WFIFOW(fd,0) = 0x8e;
                WFIFOW(fd,2) = textlen + 4;
                safestrncpy((char*)WFIFOP(fd,4), fakename, textlen);
                aFree(fakename);
        } else {
                memcpy(WFIFOP(fd,0), RFIFOP(fd,0), RFIFOW(fd,2));
                //WFIFOW(fd,0) = 0x8e;
                WFIFOW(fd,0) = 0x2C1;
                WFIFOW(fd,2) = textlen + 12;
                safestrncpy((char*)WFIFOP(fd,12), sd->char, textlen);
        }
        WFIFOSET(fd, WFIFOW(fd,2));
Viewed 363 times, submitted by unknown.