[PATCH][BZ #18265] Updated annotations for wcscpy and wcsncpy
Daniel Marjamäki
Daniel.Marjamaki@evidente.se
Thu Apr 30 12:50:00 GMT 2015
Hello!
My previous patch (https://sourceware.org/ml/libc-alpha/2015-04/msg00366.html) has not been reviewed.
I think that maybe my patch was too big.
Therefore I try to break out a few changes. This patch is much shorter, I only update the annotations for wcscpy and wcsncpy.
After this patch the annotations for wcscpy and wcsncpy will match the annoations for strcpy and strncpy. This is copy/pasted from string/string.h:
/* Copy SRC to DEST. */
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
__THROW __nonnull ((1, 2));
/* Copy no more than N characters of SRC to DEST. */
extern char *strncpy (char *__restrict __dest,
const char *__restrict __src, size_t __n)
__THROW __nonnull ((1, 2));
I hope this is much easier and quicker for you to review and that it therefore feels safer to accept and commit.
Best regards,
Daniel Marjamäki
..................................................................................................................
Daniel Marjamäki Senior Engineer
Evidente ES East AB Warfvinges väg 34 SE-112 51 Stockholm Sweden
Mobile: +46 (0)709 12 42 62
E-mail: Daniel.Marjamaki@evidente.se
www.evidente.se
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 150430-glibc.diff
Type: text/x-patch
Size: 1068 bytes
Desc: 150430-glibc.diff
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150430/aa1bc70c/attachment.bin>
More information about the Libc-alpha
mailing list