* Mark __strndup with malloc attribute
@ 1999-12-19 5:19 Andreas Jaeger
0 siblings, 0 replies; only message in thread
From: Andreas Jaeger @ 1999-12-19 5:19 UTC (permalink / raw)
To: GNU libc hacker
We should mark the internal functions also, strndup is marked but
__strndup not.
Andreas
1999-12-19 Andreas Jaeger <aj@suse.de>
* include/string.h: Mark __strndup with __attribute_malloc__.
============================================================
Index: include/string.h
--- include/string.h 1999/11/24 20:47:38 1.8
+++ include/string.h 1999/12/19 13:12:51
@@ -14,7 +14,8 @@
extern int __strncasecmp (__const char *__s1, __const char *__s2,
size_t __n);
-extern char *__strndup (__const char *__string, size_t __n);
+extern char *__strndup (__const char *__string, size_t __n)
+ __attribute_malloc__;
extern void *__rawmemchr (__const void *__s, int __c);
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-12-19 5:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-19 5:19 Mark __strndup with malloc attribute Andreas Jaeger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).