summaryrefslogtreecommitdiff
path: root/tests/test_strcpy_static_write.c
blob: a3e8100f9e2142a5fe952bbfa89fe2933a6ebe86 (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};
  strcpy(buffer, "1234567");
  puts(buffer);

  CHK_FAIL_START
  strcpy(buffer, "1234567890");
  CHK_FAIL_END

  puts(buffer);
  return ret;
}