openswan patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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