OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2539-g044785d
Gerrit Code Review
gerrit@openafs.org
Thu, 24 May 2012 08:50:22 -0700 (PDT)
The following commit has been merged in the master branch:
commit 044785d587b15e02855b6c9e396d27db962d867a
Author: Simon Wilkinson <sxw@your-file-system.com>
Date: Wed May 16 20:23:41 2012 +0100
Use asprintf for string construction
Rather than using something along the lines of
strOut = malloc(strlen(strA) + strlen(strB) + strlen(strC) + 1);
strcpy(strOut, strA);
strcat(strOut, strB);
strcat(strOut, strC);
use asprintf for string construction, so we can just write
asprintf(&strOut, "%s%s%s", strA, strB, strC);
roken provides an implementation of asprintf for platforms which are
missing one.
Change-Id: Ieef9f4b65f72260c0d372cdf3865daab98733ad9
Reviewed-on: http://gerrit.openafs.org/7451
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/afsd/afsd_fuse.c | 7 +------
src/afsweb/apache_afs_plugin.c | 5 ++---
src/aklog/aklog.c | 5 +----
src/bozo/bnode.c | 5 +----
src/bozo/bosoprocs.c | 7 ++-----
src/bozo/bosserver.c | 22 ++++++----------------
src/budb/procs.c | 4 +---
src/budb/server.c | 21 ++++++---------------
src/ptserver/db_verify.c | 5 +----
src/ptserver/ptutils.c | 5 +----
src/util/dirpath.c | 11 +++--------
11 files changed, 25 insertions(+), 72 deletions(-)
--
OpenAFS Master Repository