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

#include <string.h>

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

  CHK_FAIL_START
  strcat(buffer, argv[1]);
  CHK_FAIL_END

  puts(buffer);
  return ret;
}