The Dink Network

Reply to Re: sprintf

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 15th 2005, 07:43 PM
wizardb.gif
merlin
Peasant He/Him
 
Yep. sprintf is very dangerous since it leaves potential for a buffer overflow. Either be very careful while using it or use snprintf, which sadly, isn't portable.