]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
aklog: Correct size used for strlcpy()
authorNathan Dobson <ndobson@andrew.cmu.edu>
Fri, 20 Mar 2015 22:32:22 +0000 (18:32 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 15 Apr 2015 14:21:35 +0000 (10:21 -0400)
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 <jaltman@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-on: http://gerrit.openafs.org/11808
Reviewed-by: Chas Williams <3chas3@gmail.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/aklog/aklog.c

index eb661fabda9268238a90d8529832e8515725c5ad..b191249317ef775c8c14abefb41bfcd8ecf691d6 100644 (file)
@@ -1604,7 +1604,7 @@ main(int argc, char *argv[])
            }
            else {
                cmode++;
-               strlcpy(cell, argv[i], sizeof(path));
+               strlcpy(cell, argv[i], sizeof(cell));
            }
        }
        else