lkml.org 
[lkml]   [2014]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] staging: lustre: lustre: libcfs: debug.c: Cleaning up unnecessary use of memset in conjunction with strncpy
2014-09-19 0:39 GMT+02:00 Dan Carpenter <dan.carpenter@oracle.com>:
> On Thu, Sep 18, 2014 at 09:57:17PM +0200, Rickard Strandqvist wrote:
>>
>> Should I add this as a patch in lib/string.c or email him first.. What
>> is customary in these situations?
>>
>
> Just write up a normal patch and try to merge it through the normal
> methods.
>
> It's not that controversial to do:
>
> strncpy(dest, src, n);
> dest[n] = '\0';
>
> That's what we have been open coding all over the place anyway already.


Hi Dan!

I have tried the function strzcpy that we talk about, but it has not
happened anything:-(

Is there anything else I can do?


Kind regards
Rickard Strandqvist


\
 
 \ /
  Last update: 2014-10-15 00:02    [W:0.053 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site