diff options
author | David Carlier <devnexen@gmail.com> | 2018-08-15 20:09:52 +0000 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2018-08-15 20:09:52 +0000 |
commit | 6a691a0b7ccfa05b983e4e85e223ccfdbec2efbb (patch) | |
tree | d5eb16854212b75374b809266d6dc49486ea01d6 /clang/test/Analysis/cstring-syntax.c | |
parent | 3434ade2b7ca351b61522f7da4b55070d811b83f (diff) | |
download | bcm5719-llvm-6a691a0b7ccfa05b983e4e85e223ccfdbec2efbb.tar.gz bcm5719-llvm-6a691a0b7ccfa05b983e4e85e223ccfdbec2efbb.zip |
[CStringSyntaxChecker] Reduces space around error message for strlcat.
llvm-svn: 339808
Diffstat (limited to 'clang/test/Analysis/cstring-syntax.c')
-rw-r--r-- | clang/test/Analysis/cstring-syntax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/cstring-syntax.c b/clang/test/Analysis/cstring-syntax.c index c6d36940605..26e3616017d 100644 --- a/clang/test/Analysis/cstring-syntax.c +++ b/clang/test/Analysis/cstring-syntax.c @@ -42,7 +42,7 @@ void testStrlcat(const char *src) { strlcpy(dest, "aaaaa", sizeof("aaaaa") - 1); strlcat(dest, "bbbb", (sizeof("bbbb") - 1) - sizeof(dest) - 1); strlcpy(dest, "012345678", sizeof(dest)); - strlcat(dest, "910", sizeof(dest)); // expected-warning {{The third argument allows to potentially copy more bytes than it should. Replace with the value <size> - strlen(dest) - 1 or lower}} + strlcat(dest, "910", sizeof(dest)); // expected-warning {{The third argument allows to potentially copy more bytes than it should. Replace with the value <size> - strlen(dest) - 1 or lower}} strlcpy(dest, "0123456789", sizeof(dest)); strlcat(dest, "0123456789", badlen); // expected-warning {{The third argument allows to potentially copy more bytes than it should. Replace with the value 'badlen' - strlen(dest) - 1 or lower}} strlcat(dest, "0123456789", badlen - strlen(dest) - 1); |