]> git.droids-corp.org - libcmdline.git/blobdiff - src/lib/cmdline_parse_etheraddr.h
cmdline: check size of result buffer to avoid overflow
[libcmdline.git] / src / lib / cmdline_parse_etheraddr.h
index eb63f8b04be2a1b2a0f9c952d7abbad93f5a6906..23e54e91ef1120ab867e65c2d787b2a57261d028 100644 (file)
@@ -76,7 +76,7 @@ typedef struct cmdline_token_etheraddr cmdline_parse_token_etheraddr_t;
 extern struct cmdline_token_ops cmdline_token_etheraddr_ops;
 
 int cmdline_parse_etheraddr(cmdline_parse_token_hdr_t *tk, const char *srcbuf,
 extern struct cmdline_token_ops cmdline_token_etheraddr_ops;
 
 int cmdline_parse_etheraddr(cmdline_parse_token_hdr_t *tk, const char *srcbuf,
-                           void *res);
+                           void *res, unsigned ressize);
 int cmdline_get_help_etheraddr(cmdline_parse_token_hdr_t *tk, char *dstbuf,
                               unsigned int size);
 
 int cmdline_get_help_etheraddr(cmdline_parse_token_hdr_t *tk, char *dstbuf,
                               unsigned int size);