aboutsummaryrefslogtreecommitdiff
path: root/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Sema/SemaChecking.cpp')
-rw-r--r--Sema/SemaChecking.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Sema/SemaChecking.cpp b/Sema/SemaChecking.cpp
index 883cbb6e70..8cc3c6c147 100644
--- a/Sema/SemaChecking.cpp
+++ b/Sema/SemaChecking.cpp
@@ -57,7 +57,7 @@ Sema::CheckFunctionCall(Expr *Fn, FunctionDecl *FDecl,
case id_vsprintf: format_idx = 1; break;
case id_vprintf: format_idx = 1; break;
}
- CheckPrintfArguments(Fn, FDecl, format_idx, Args, NumArgsInCall);
+ CheckPrintfArguments(Fn, i, FDecl, format_idx, Args, NumArgsInCall);
}
}
@@ -70,8 +70,9 @@ Sema::CheckFunctionCall(Expr *Fn, FunctionDecl *FDecl,
/// FormatGuard: Automatic Protection From printf Format String
/// Vulnerabilities, Proceedings of the 10th USENIX Security Symposium, 2001.
void
-Sema::CheckPrintfArguments(Expr *Fn, FunctionDecl *FDecl, unsigned format_idx,
- Expr** Args, unsigned NumArgsInCall) {
+Sema::CheckPrintfArguments(Expr *Fn, unsigned id_idx, FunctionDecl *FDecl,
+ unsigned format_idx, Expr** Args,
+ unsigned NumArgsInCall) {
assert( format_idx < NumArgsInCall );