gets


 
Thread Tools Search this Thread
Top Forums Programming gets
# 1  
Old 02-24-2005
gets

can any one help me
why do i get the error like
gets function is dangerous and should not be used

while compile a file by gcc filename.c in ret hat linux
# 2  
Old 02-24-2005
well, try 'man gets'
For good coding-security practice you should not use gets() coz it lacks of bound checking and may overflow your dst-buffer leading to a so-called buffer overflow Smilie
But if u know what u r doing ...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question