================
@@ -226,13 +226,15 @@ void WalkAST::VisitCallExpr(CallExpr *CE) {
 
       SmallString<256> S;
       llvm::raw_svector_ostream os(S);
-      os << "Potential buffer overflow. ";
+      os << "Potential buffer overflow; ";
       if (!DstName.empty()) {
-        os << "Replace with 'sizeof(" << DstName << ") "
-              "- strlen(" << DstName <<") - 1'";
+        os << "replace with 'sizeof(" << DstName
+           << ") "
+              "- strlen("
----------------
steakhal wrote:

```suggestion
           << ") - strlen("
```

https://github.com/llvm/llvm-project/pull/237410
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to