git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7ae8e64
)
aklog: Correct size used for strlcpy()
author
Nathan Dobson
<ndobson@andrew.cmu.edu>
Fri, 20 Mar 2015 22:32:22 +0000 (18:32 -0400)
committer
Jeffrey Altman
<jaltman@your-file-system.com>
Fri, 20 Mar 2015 23:20:01 +0000 (19:20 -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.
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>
src/aklog/aklog.c
patch
|
blob
|
history
diff --git
a/src/aklog/aklog.c
b/src/aklog/aklog.c
index
c098d84
..
1eaa95e
100644
(file)
--- 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