From 6833be1e845c54edd9452b9e9e0fbd529cd1c8c3 Mon Sep 17 00:00:00 2001 From: Nathan Dobson Date: Fri, 20 Mar 2015 18:32:22 -0400 Subject: [PATCH] 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. (cherry picked from commit 777870da86e9ed66756e01e858a54e959959482d) Change-Id: Ib8b523901dd8008038c5a95a7c315b899cff8cee Reviewed-on: http://gerrit.openafs.org/11807 Reviewed-by: Jeffrey Altman Tested-by: BuildBot Reviewed-on: http://gerrit.openafs.org/11808 Reviewed-by: Chas Williams <3chas3@gmail.com> Reviewed-by: Benjamin Kaduk Reviewed-by: Stephan Wiesand --- src/aklog/aklog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aklog/aklog.c b/src/aklog/aklog.c index eb661fabd..b19124931 100644 --- a/src/aklog/aklog.c +++ b/src/aklog/aklog.c @@ -1604,7 +1604,7 @@ main(int argc, char *argv[]) } else { cmode++; - strlcpy(cell, argv[i], sizeof(path)); + strlcpy(cell, argv[i], sizeof(cell)); } } else -- 2.39.5