git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fstrace: Don't read uninitialised data
[openafs.git]
/
src
/
venus
/
fstrace.c
diff --git
a/src/venus/fstrace.c
b/src/venus/fstrace.c
index
9020e69
..
588415e
100644
(file)
--- a/
src/venus/fstrace.c
+++ b/
src/venus/fstrace.c
@@
-157,7
+157,7
@@
CheckTypes(char *bufferp, int *typesp, int typeCount, char *outMsgBuffer)
* check the type descriptor.
*/
inPercent = 0;
- if (tix > typeCount)
+ if (tix >= typeCount)
return 0; /* no more type descriptors left */
if (tc == 's') {
if (typesp[tix] != 1) /* not a string descriptor */