Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2020 09:37:17 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r536451 - head/devel/simavr/files
Message-ID:  <202005250937.04P9bHIQ023666@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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")) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005250937.04P9bHIQ023666>