Corewar icon indicating copy to clipboard operation
Corewar copied to clipboard

./corewar don't check the extension file .cor

Open tlenglin opened this issue 9 years ago • 2 comments

tlenglin avatar Apr 26 '17 07:04 tlenglin

@Natansab What's your take on this?

emilwallner avatar Apr 26 '17 14:04 emilwallner

if (ft_strlen(e->files[e->player[i].file_pos]) <= 4 || strcmp(e->files[e->player[i].file_pos] + ft_strlen(e->files[e->player[i].file_pos]) - 4,".cor")) ft_exit(e, 11);

code to check if .cor file @emilwallner

Natansab avatar Apr 26 '17 14:04 Natansab