memset() was called with a size argument against a pointer size, not the
structure size itself.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 43913
/* fill firmware header */
hdr = (struct edimax_header *)buf;
/* fill firmware header */
hdr = (struct edimax_header *)buf;
- memset(hdr, 0, sizeof(struct edimax_header *));
+ memset(hdr, 0, sizeof(struct edimax_header));
strncpy(hdr->model, model, sizeof(hdr->model));
strncpy(hdr->magic, magic, sizeof(hdr->magic));
strncpy(hdr->model, model, sizeof(hdr->model));
strncpy(hdr->magic, magic, sizeof(hdr->magic));