Skip to main content
Bug HuntC C Hard+35 XP

Buffer Overflow

This code has a dangerous security vulnerability.

๐Ÿ› Find the bug
1char buf[10];
2gets(buf);
๐Ÿ› The bug is on line 2

๐Ÿ”ง Select the correct fix: