Trying to improve x49gp
|
08-23-2018, 07:15 PM
Post: #30
|
|||
|
|||
RE: Trying to improve x49gp
(08-23-2018 05:44 PM)3298 Wrote: This is the other reason for getting this out; shortly after the last post a compiler / system header update caused a compilation error via a warning and -Werror on my setup. (Something about stringop and truncation, I don't remember the exact message.) I lot of projects started getting that when GCC 8 became the default compiler on their systems. ISTR it is due to calling strncpy with a length that is the same length as the destination buffer. Something that many would argue is a reasonable thing to do if you know what you are doing! (The destination buffer may end up not null-terminated.) — Ian Abbott |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)