VPP251 - Code style vnet/vnet/ethernet
[vpp.git] / vppapigen / node.c
index ab8adc5..e66fdce 100644 (file)
@@ -1034,7 +1034,7 @@ char *fixup_input_filename(void)
     if (*cp == '/')
         cp++;
 
-    strcpy (tmpbuf, cp);
+    strncpy (tmpbuf, cp, sizeof(tmpbuf)-1);
 
     cp = tmpbuf;