qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [5531] Replace uses of strncpy (a GNU extension) with Q


From: andrzej zaborowski
Subject: Re: [Qemu-devel] [5531] Replace uses of strncpy (a GNU extension) with Qemu pstrcpy
Date: Sat, 25 Oct 2008 13:55:18 +0200

2008/10/25 Blue Swirl <address@hidden>:
> On 10/25/08, Blue Swirl <address@hidden> wrote:
>> Revision: 5531
>>           http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5531
>>  Author:   blueswir1
>>  Date:     2008-10-25 11:21:28 +0000 (Sat, 25 Oct 2008)
>>
>>  Log Message:
>>  -----------
>>  Replace uses of strncpy (a GNU extension) with Qemu pstrcpy
>
> Actually, strncpy is not a GNU extension.

It's also not equivalent with pstrcpy because the latter always
appends a \0, so in the bt-hci.c case the original code was more
correct (but it only matters if a device's LMP name is exactly 248
chars long, which would be rare)




reply via email to

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