summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorBeat Bolli <dev@drbeat.li>2016-03-28 12:18:58 +0200
committerEric S. Raymond <esr@thyrsus.com>2016-03-28 07:58:13 -0400
commitd692b039baa34a35c6b5d33246b8e06deed7370b (patch)
treebaa67e0d0d9fc4af4398360949083d16de0d6c68 /www
parent91287de288249c585afc277f75dd2cbeac347c18 (diff)
downloadgpsd-d692b039baa34a35c6b5d33246b8e06deed7370b.tar.gz
hacking: mention strdup in the no-malloc section.
Signed-off-by: Beat Bolli <dev@drbeat.li>
Diffstat (limited to 'www')
-rw-r--r--www/hacking.html.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/www/hacking.html.in b/www/hacking.html.in
index 06852784..19ee6d78 100644
--- a/www/hacking.html.in
+++ b/www/hacking.html.in
@@ -489,6 +489,9 @@ to be embedding a PATH_MAX-sized buffer in the gpsd.h structure.</p>
<p>Don't undo this by using malloc/free in a driver or anywhere else.</p>
+<p>Please note that this restriction includes indirect callers of malloc
+like strdup.</p>
+
<h2 id="sizeof">Avoid use of sizeof(&lt;int type&gt;)!</h2>
<p>It's tempting to extract parts of packets with by using a loop of the