Re: [Mesa-dev] [PATCH v3 1/3] util: Add util_strncpy

2017-07-03 Thread Nicolai Hähnle
On 03.07.2017 16:38, Brian Paul wrote: On 07/03/2017 04:45 AM, Nicolai Hähnle wrote: On 03.07.2017 12:44, Nicolai Hähnle wrote: On 03.07.2017 09:43, Gustaw Smolarczyk wrote: 2017-07-03 6:10 GMT+02:00 Robert Foss : On Sun, 2017-07-02 at 21:06 -0700, Matt Turner wrote: Otherwise known as strlc

Re: [Mesa-dev] [PATCH v3 1/3] util: Add util_strncpy

2017-07-03 Thread Brian Paul
On 07/03/2017 04:45 AM, Nicolai Hähnle wrote: On 03.07.2017 12:44, Nicolai Hähnle wrote: On 03.07.2017 09:43, Gustaw Smolarczyk wrote: 2017-07-03 6:10 GMT+02:00 Robert Foss : On Sun, 2017-07-02 at 21:06 -0700, Matt Turner wrote: Otherwise known as strlcpy()? I didn't realize this, a wrapper

Re: [Mesa-dev] [PATCH v3 1/3] util: Add util_strncpy

2017-07-03 Thread Nicolai Hähnle
On 03.07.2017 12:44, Nicolai Hähnle wrote: On 03.07.2017 09:43, Gustaw Smolarczyk wrote: 2017-07-03 6:10 GMT+02:00 Robert Foss : On Sun, 2017-07-02 at 21:06 -0700, Matt Turner wrote: Otherwise known as strlcpy()? I didn't realize this, a wrapper would be needed for all platformsou that don't

Re: [Mesa-dev] [PATCH v3 1/3] util: Add util_strncpy

2017-07-03 Thread Nicolai Hähnle
On 03.07.2017 09:43, Gustaw Smolarczyk wrote: 2017-07-03 6:10 GMT+02:00 Robert Foss : On Sun, 2017-07-02 at 21:06 -0700, Matt Turner wrote: Otherwise known as strlcpy()? I didn't realize this, a wrapper would be needed for all platformsou that don't support it natively. Do you know which pla

Re: [Mesa-dev] [PATCH v3 1/3] util: Add util_strncpy

2017-07-03 Thread Gustaw Smolarczyk
2017-07-03 6:10 GMT+02:00 Robert Foss : > On Sun, 2017-07-02 at 21:06 -0700, Matt Turner wrote: >> Otherwise known as strlcpy()? > > I didn't realize this, a wrapper would be needed for all platformsou > that don't support it natively. > > Do you know which platforms support strlcpy? > > > Rob. I

Re: [Mesa-dev] [PATCH v3 1/3] util: Add util_strncpy

2017-07-02 Thread Robert Foss
On Sun, 2017-07-02 at 21:06 -0700, Matt Turner wrote: > Otherwise known as strlcpy()? I didn't realize this, a wrapper would be needed for all platformsou that don't support it natively. Do you know which platforms support strlcpy? Rob. ___ mesa-dev

Re: [Mesa-dev] [PATCH v3 1/3] util: Add util_strncpy

2017-07-02 Thread Matt Turner
On Sun, Jul 2, 2017 at 8:49 PM, Robert Foss wrote: > Add strncpy wrapper that makes sure that the string is always ends > with a null byte. Otherwise known as strlcpy()? ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.

[Mesa-dev] [PATCH v3 1/3] util: Add util_strncpy

2017-07-02 Thread Robert Foss
Add strncpy wrapper that makes sure that the string is always ends with a null byte. Signed-off-by: Robert Foss --- Changes since v2: Brian Paul - Patch added src/util/u_string.h | 9 + 1 file changed, 9 insertions(+) diff --git a/src/util/u_string.h b/src/util/u_string.h index