citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit dce338afba40efaceb330bbc0ad868f7e2861554
parent 454a37264bdf8478d3b204233eb7db8ce2ceae66
Author: Kyle Milz <kyle@0x30.net>
Date:   Thu, 15 Dec 2016 19:43:18 -0700

src: use std::memcpy

Diffstat:
Msrc/process_file.cc | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/process_file.cc b/src/process_file.cc @@ -18,13 +18,12 @@ #include <cassert> #include <csignal> // kill -#include <cstring> // strncmp +#include <cstring> // memcpy, strncmp #include <err.h> #include <fcntl.h> // O_RDONLY #include <fstream> #include <iostream> #include <stdlib.h> // getenv -#include <string.h> // memcpy #include <unistd.h> // getpagesize #include "process_file.h" @@ -98,7 +97,7 @@ TranslationUnit::read_source() void TranslationUnit::save_executions() { - memcpy(m_data_buffer, m_data, m_node->size * sizeof(unsigned long long)); + std::memcpy(m_data_buffer, m_data, m_node->size * sizeof(unsigned long long)); }