emacs-devel
[Top][All Lists]
Advanced

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

Re: netsec 682578f 4/6: Add option to bypass NSM TLS checks on local net


From: Robert Pluim
Subject: Re: netsec 682578f 4/6: Add option to bypass NSM TLS checks on local networks
Date: Tue, 17 Jul 2018 20:00:32 +0200

Eli Zaretskii <address@hidden> writes:

>> From: Robert Pluim <address@hidden>
>> Date: Tue, 17 Jul 2018 18:17:57 +0200
>> 
>> I couldn't get my original to fail with a unibyte string. Turns out
>> that even though size_byte is indeed -1 for unibyte strings, in that
>> case SBYTES returns the size field:
>> 
>>   ptrdiff_t nbytes = s->u.s.size_byte < 0 ? s->u.s.size : s->u.s.size_byte;
>
> Ah, yes.  I keep forgetting that.  Which is one more reason not to
> rely on that, if you ask me ;-)

STRING_MULTIBYTE it is then.

Robert



reply via email to

[Prev in Thread] Current Thread [Next in Thread]