X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/cf90d8bc6c8e339682d96ae43959e1dabc5fefb9..HEAD:/practicas/pipi/src/ipheader.cpp diff --git a/practicas/pipi/src/ipheader.cpp b/practicas/pipi/src/ipheader.cpp index facc22b..60b1683 100644 --- a/practicas/pipi/src/ipheader.cpp +++ b/practicas/pipi/src/ipheader.cpp @@ -12,7 +12,7 @@ IPHeader::IPHeader(uint8_t version, uint16_t total_len, uint16_t id, bool df, IPHeader::IPHeader(const std::string& s) { - *this = *((IPHeader*)s.c_str()); + *this = *((IPHeader*)s.data()); } size_t IPHeader::header_len()