aboutsummaryrefslogtreecommitdiff
path: root/slides/2018-software-security/demo/complex.c
blob: ae91ac611231276c5f44a4199d4b89b38b3e957c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <string.h>

void f(char *b) {
	char buf[8];
	strcpy(buf, b);
	printf("buf: %s\n", buf);
}

int main(int argc, char *argv[]) {
	f(argv[1]);
	return 0;
}