Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
core/serirq: Use memset not memcpy
The intention is to nullify not copy the IRQ pointers

Reported-By: Thomas Schmitt <scdbackup@gmx.net>
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
  • Loading branch information
geneC committed Jul 18, 2015
1 parent a328bee commit 98c412d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/serirq.c
Expand Up @@ -200,5 +200,5 @@ __export void sirq_cleanup_nowipe(void)
void sirq_cleanup(void)
{
sirq_cleanup_nowipe();
memcpy(SerialHead, 0x0, serial_buf_size);
memset(SerialHead, 0x0, serial_buf_size);
}

0 comments on commit 98c412d

Please sign in to comment.