[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

PATCH: clarification to 'HACKING'

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-12-16 01:50:22 CET

(Re-posting; originally posted 2003-11-26.)

I thought this bit of HACKING was misleading: it implied that all standard library string functions were unacceptable, but I think only the ones that write to strings are unacceptable whereas "strchr" etc. are OK.

[[[
Clarify, in HACKING, which string functions are acceptable.
]]]

Index: HACKING
===================================================================
--- HACKING (revision 7857)
+++ HACKING (working copy)
@@ -308,8 +308,8 @@ invoked with improper values.

String operations

-Use only the string functions provided in apr_strings.h. These are
-replacements for standard C library string functions, except safer
+Use the string functions provided in apr_strings.h instead of standard
+C library functions that write to strings. The APR functions are safer
because they do bounds-checking and dest allocation automatically.
Although there may be circumstances where it's theoretically safe to
use plain C string functions (such as when you already know the

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 16 01:50:32 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.