<<< Date Index >>>     <<< Thread Index >>>

Re: mutt/2802 - stupid usage of strcat (fwd)



The following reply was made to PR mutt/2802; it has been noted by GNATS.

From: Oswald Buddenhagen <ossi@xxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: 
Subject: Re: mutt/2802 - stupid usage of strcat (fwd)
Date: Mon, 12 Mar 2007 16:12:43 +0100

 talking about stupid ...
 using strcat instead of strcpy when the target string is known to be
 empty is not too wise, but mostly irrelevant.
 it is even less wise to use strcat/strcpy instead of memcpy when the
 length of the source string is known in advance. but i guess this is
 relatively insignificant compared to strcat()ing when the target string
 is already quite long compared to the length of the source string.