cfb6182a3f
Submitted by Andrew Dalgleish <openbsd@ajd.net.au>. GPUTILS is a collection of tools for the Microchip (TM) PIC microcontrollers. It includes gpasm, gplink, and gplib.
15 lines
537 B
Plaintext
15 lines
537 B
Plaintext
$OpenBSD: patch-gpasm_cod_c,v 1.1.1.1 2003/11/03 01:02:34 naddy Exp $
|
|
--- gpasm/cod.c.orig 2003-10-14 20:52:05.000000000 +1000
|
|
+++ gpasm/cod.c 2003-10-14 20:52:59.000000000 +1000
|
|
@@ -75,8 +75,8 @@ cod_init(void)
|
|
{
|
|
|
|
if (state.codfile != named) {
|
|
- strcpy(state.codfilename, state.basefilename);
|
|
- strcat(state.codfilename, ".cod");
|
|
+ strlcpy(state.codfilename, state.basefilename, sizeof(state.codfilename));
|
|
+ strlcat(state.codfilename, ".cod", sizeof(state.codfilename));
|
|
}
|
|
|
|
if (state.codfile == suppress) {
|