src/svf/svf_bison.y: Avoid further overhead by using memcpy() with all known lengths rather than strcpy().

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

@ -21,6 +21,9 @@
strcat(). This avoids having to rescan for the end of the string. Fix by
Frans Meulenbroeks.
* src/svf/svf_bison.y: Avoid further overhead by using memcpy() with all
known lengths rather than strcpy().
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) {
strcpy ($1.buf + $1.strlen, $2);
memcpy ($1.buf + $1.strlen, $2, frag_len + 1);
$1.strlen += frag_len;
}
free ($2);

Loading…
Cancel
Save