FreeBSD Bugzilla – Attachment 214839 Details for
Bug 246719
devel/simavr: fix build on GCC architectures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
simavr.patch (text/plain), 1.02 KB, created by
Piotr Kubaj
on 2020-05-25 09:07:24 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2020-05-25 09:07:24 UTC
Size:
1.02 KB
patch
obsolete
>Index: files/patch-simavr_sim_run__avr.c >=================================================================== >--- files/patch-simavr_sim_run__avr.c (nonexistent) >+++ files/patch-simavr_sim_run__avr.c (working copy) >@@ -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")) { > >Property changes on: files/patch-simavr_sim_run__avr.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 246719
: 214839