summaryrefslogtreecommitdiff
path: root/tests/test_strcat_static_write.c
blob: d0cb9034bf0e0df2f9ecba7b5da7b84ff9c78f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "common.h"

#include <string.h>

int main(int argc, char** argv) {
  char buffer[8] = {0};
  strcat(buffer, "1234567");
  puts(buffer);

  CHK_FAIL_START
  strcat(buffer, "1234567890");
  CHK_FAIL_END

  puts(buffer);
  return ret;
}