Re: [hackers] [dwm] [PATCH] Replace str[n]cpy with strlcpy

From: FRIGN <dev_AT_frign.de>
Date: Sun, 5 Jun 2016 09:10:56 +0200

On Fri, 3 Jun 2016 17:58:12 +0200
k0ga_AT_shike2.com wrote:

Hey k0ga,

> safe?. You are not checking any of the return codes. You are only
> moving the problem from some place to another place. Please add
> checks and stop using non portable functions. I don't want your
> shit, thanks.

I just saw that I forgot to amend this part of the patch to this
one here. Will push it later, like the following:

if (strlcpy(..., size) >= size)
        ...

The only reason why strlcpy is "non-portable" is because the
Posix-committee has sticks up their asses (same with the
glibc guys).

Cheers

FRIGN


-- 
FRIGN <dev_AT_frign.de>
Received on Sun Jun 05 2016 - 09:10:56 CEST

This archive was generated by hypermail 2.3.0 : Sun Jun 05 2016 - 09:12:14 CEST