maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #01456
New (by Monty): Change to use c_ptr_safe() instead of c_ptr() (62)
-----------------------------------------------------------------------
WORKLOG TASK
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
TASK...........: Change to use c_ptr_safe() instead of c_ptr()
CREATION DATE..: Sat, 07 Nov 2009, 13:14
SUPERVISOR.....: Bothorsen
IMPLEMENTOR....:
COPIES TO......:
CATEGORY.......: Server-RawIdeaBin
TASK ID........: 62 (http://askmonty.org/worklog/?tid=62)
VERSION........: Benchmarks-3.0
STATUS.........: Un-Assigned
PRIORITY.......: 60
WORKED HOURS...: 0
ESTIMATE.......: 30 (hours remain)
ORIG. ESTIMATE.: 30
PROGRESS NOTES:
DESCRIPTION:
Change to use c_ptr_safe() instead of c_ptr()
This is to avoid possible (but unlikely) problems with disappearing \0 after
usage of c_ptr().
Reasons to do this are:
- Getting rid of some valgrind warnings (where the end \0 was never written).
- It's a gotcha for developers that would use Strings without knowing when
c_ptr() is safe to use.
ESTIMATED WORK TIME
ESTIMATED COMPLETION DATE
-----------------------------------------------------------------------
WorkLog (v3.5.9)