diff options
Diffstat (limited to 'test/Analysis/bsd-string.c')
-rw-r--r-- | test/Analysis/bsd-string.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Analysis/bsd-string.c b/test/Analysis/bsd-string.c index bca42ca896..4fbfd48ad8 100644 --- a/test/Analysis/bsd-string.c +++ b/test/Analysis/bsd-string.c @@ -15,6 +15,7 @@ void f1() { void f2() { char buf[5]; strlcpy(buf, "abcd", sizeof(buf)); // expected-no-warning + // FIXME: This should not warn. The string is safely truncated. strlcat(buf, "efgh", sizeof(buf)); // expected-warning{{Size argument is greater than the free space in the destination buffer}} } |