[OpenAFS-devel] Incorrect uses of strcpy?

ober ober@linbsd.org
Thu, 12 Jan 2006 19:21:19 -0600 (CST)


Yeah I see that strcpy is redefined with their own definition.

thanks.

-Ober

On Thu, 12 Jan 2006, Jeffrey Altman wrote:

> Date: Thu, 12 Jan 2006 20:11:33 -0500
> From: Jeffrey Altman <jaltman@secure-endpoints.com>
> To: ober <ober@linbsd.org>
> Cc: openafs-devel@openafs.org
> Subject: Re: [OpenAFS-devel] Incorrect uses of strcpy?
> 
> ober wrote:
>> I found the following fragment in
>>         } else {
>>                 strcpy(mountRoot, sizeof(cm_mountRoot), "/afs");
>>                 cm_mountRootLen = 4;
>>         }
>>
>> in line 94 of src/WINNT/client_config/afsmap.c
>> Is it correct to call strcpy with 3 options?
>>
>> Just curious as that did not look right.
>>
>> -Ober
>
> That would not be correct.  However, I would not worry.
> That file is not compiled as part of building openafs for windows.
>
> Jeffrey Altman
>
>