diff options
author | Gene Cumm <gene.cumm@gmail.com> | 2015-07-18 08:02:04 -0400 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2015-07-18 08:02:04 -0400 |
commit | 98c412df5c146754097b678abca8b98abee4968b (patch) | |
tree | 7b17e4f2fb71318ed889d1967e4287167bc8e492 | |
parent | a328beeb6d8ef595487cd731e8a271895c4662e0 (diff) | |
download | syslinux-98c412df5c146754097b678abca8b98abee4968b.tar.gz syslinux-98c412df5c146754097b678abca8b98abee4968b.tar.xz syslinux-98c412df5c146754097b678abca8b98abee4968b.zip |
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>
-rw-r--r-- | core/serirq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/serirq.c b/core/serirq.c index e230b98d..22370b9c 100644 --- a/core/serirq.c +++ b/core/serirq.c @@ -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); } |