src/svf/svf_bison.y: Use known string length to call strcpy() rather than strcat(). This avoids having to rescan for the end of the string. Fix by Frans Meulenbroeks.

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1840 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 15 years ago
parent 328ca1d817
commit 6e88ef26f9

@ -17,6 +17,10 @@
* src/svf/svf_bison.y: Avoid calling strlen() multiple times on the same
string. Fix by Frans Meulenbroeks.
* src/svf/svf_bison.y: Use known string length to call strcpy() rather than
strcat(). This avoids having to rescan for the end of the string. Fix by
Frans Meulenbroeks.
2010-08-26 Mike Frysinger <vapier@gentoo.org>
* src/tap/cable/gpio.c: Rewrite to use raw file descriptors when working with

@ -312,7 +312,7 @@ hexa_num_sequence
$1.buflen = newlen;
}
if ($1.buf != NULL) {
strcat ($1.buf, $2);
strcpy ($1.buf + $1.strlen, $2);
$1.strlen += frag_len;
}
free ($2);

Loading…
Cancel
Save