From: Nathan Dobson Date: Fri, 20 Mar 2015 22:32:22 +0000 (-0400) Subject: aklog: Correct size used for strlcpy() X-Git-Tag: upstream/1.8.0_pre1^2~342 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=777870da86e9ed66756e01e858a54e959959482d;p=packages%2Fo%2Fopenafs.git aklog: Correct size used for strlcpy() When copying into the 'cell' array, use the size of cell, not the size of some other array that is copied into a few lines previously. Change-Id: Ib8b523901dd8008038c5a95a7c315b899cff8cee Reviewed-on: http://gerrit.openafs.org/11807 Reviewed-by: Jeffrey Altman Tested-by: BuildBot --- diff --git a/src/aklog/aklog.c b/src/aklog/aklog.c index c098d8424..1eaa95e89 100644 --- a/src/aklog/aklog.c +++ b/src/aklog/aklog.c @@ -1614,7 +1614,7 @@ main(int argc, char *argv[]) } else { cmode++; - strlcpy(cell, argv[i], sizeof(path)); + strlcpy(cell, argv[i], sizeof(cell)); } } else