OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2306-g1e30c00
Gerrit Code Review
gerrit@openafs.org
Sat, 7 Apr 2012 05:08:54 -0700 (PDT)
The following commit has been merged in the master branch:
commit 1e30c00e7d9b45d65e819d39414939f2d5f7631b
Author: Simon Wilkinson <sxw@your-file-system.com>
Date: Fri Mar 30 19:18:47 2012 +0100
libafscp: Use strdup, rather than rolling our own
A = malloc(strlen(B)+ 1);
memset(A, 0, strlen(B) + 1);
strlcpy(A, B, strlen(B) + 1);
can be more simply written as
A = strdup(B);
Doing so also avoids a warning from clang that strlcpy isn't checking
for A overflowing.
Change-Id: I0e21f86eda7bdc0ce869e651c5ceb23d7494e1e2
Reviewed-on: http://gerrit.openafs.org/7077
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/libafscp/afscp_server.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
--
OpenAFS Master Repository