Skip to content

Instantly share code, notes, and snippets.

@sh4869
Created Jun 20, 2019
Embed
What would you like to do?
openswan patch
iff --git a/programs/tncfg/tncfg.c b/programs/tncfg/tncfg.c
index 598e99e2c..d8b00ae45 100644
--- a/programs/tncfg/tncfg.c
+++ b/programs/tncfg/tncfg.c
@@ -228,13 +228,15 @@ main(int argc, char *argv[])
createdelete = SADB_X_UNPLUMBIF;
strncat(virtname, optarg, sizeof(virtname)-1);
break;
-
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstringop-truncation"
case 'V':
strncpy(ifr.ifr_name, optarg, sizeof(ifr.ifr_name));
break;
case 'P':
strncpy(shc.cf_name, optarg, sizeof(shc.cf_name));
break;
+#pragma GCC diagnostic pop
case 'l':
{
char *toolname= malloc(strlen(argv[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment