Introduction
Introduction Statistics Contact Development Disclaimer Help
Convert cid to char * for strlcpy - sdhcp - simple dhcp client
git clone git://git.codemadness.org/sdhcp
Log
Files
Refs
LICENSE
---
commit a8cbeb12e4df31ea50f5effd25eacfe8145c538e
parent cbf0f211645a92ada263ddff97e08038c9d19299
Author: Michael Forney <[email protected]>
Date: Wed, 14 Nov 2018 18:40:33 -0800
Convert cid to char * for strlcpy
Diffstat:
M sdhcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sdhcp.c b/sdhcp.c
@@ -467,7 +467,7 @@ main(int argc, char *argv[])
if (argc)
ifname = argv[0]; /* interface name */
if (argc >= 2)
- strlcpy(cid, argv[1], sizeof(cid)); /* client-id */
+ strlcpy((char *)cid, argv[1], sizeof(cid)); /* client-id */
memset(&ifreq, 0, sizeof(ifreq));
signal(SIGALRM, nop);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.