Follow-up Comment #1, patch #7078 (project simulavr): Nice catch. (Oh those pesky C string functions. How difficult to get right. And how boring.)
However the strncat() copies the specified number of bytes _plus_ NUL byte. See wikipedia http://en.wikipedia.org/wiki/Strcat#strncat "Common mistakes are..." In the original patch it overwrites one byte. This new one does not, I hope. (file #19585) _______________________________________________________ Additional Item Attachment: File name: happy_gcc_v2.patch Size:2 KB _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?7078> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ Simulavr-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/simulavr-devel
