svn commit: r536451 - head/devel/simavr/files
Piotr Kubaj
pkubaj at FreeBSD.org
Mon May 25 09:37:18 UTC 2020
Author: pkubaj
Date: Mon May 25 09:37:17 2020
New Revision: 536451
URL: https://svnweb.freebsd.org/changeset/ports/536451
Log:
devel/simavr: fix build on GCC architectures
Merge the first hunk of https://github.com/buserror/simavr/commit/c2c8e40ff219f78779fc2743f0c1ffbabe159e37#diff-d06f1c6c1d6e380263f5450d5b70ca2b.diff to fix build. The whole patch can't be merged, the other two hunks don't apply.
PR: 246719
Approved by: felix at palmen-it.de (maintainer)
Added:
head/devel/simavr/files/patch-simavr_sim_run__avr.c (contents, props changed)
Added: head/devel/simavr/files/patch-simavr_sim_run__avr.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/simavr/files/patch-simavr_sim_run__avr.c Mon May 25 09:37:17 2020 (r536451)
@@ -0,0 +1,11 @@
+--- simavr/sim/run_avr.c.orig 2018-01-10 10:05:15 UTC
++++ simavr/sim/run_avr.c
+@@ -106,7 +106,7 @@ main(
+ display_usage(basename(argv[0]));
+ } else if (!strcmp(argv[pi], "-m") || !strcmp(argv[pi], "--mcu")) {
+ if (pi < argc-1)
+- strncpy(name, argv[++pi], sizeof(name));
++ snprintf(name, sizeof(name), "%s", argv[++pi]);
+ else
+ display_usage(basename(argv[0]));
+ } else if (!strcmp(argv[pi], "-f") || !strcmp(argv[pi], "--freq")) {
More information about the svn-ports-all
mailing list