Fix build with GCC 8: strncpy -> memcpy
[deliverable/binutils-gdb.git] / gdb / gdbserver / remote-utils.c
index 2e4888a78db928bf7701dd7fe0b0b76d83dde411..2fdbb6f4bd7538596bf626b37b4d7c263815b32e 100644 (file)
@@ -1173,7 +1173,7 @@ prepare_resume_reply (char *buf, ptid_t ptid,
            CORE_ADDR addr;
            int i;
 
-           strncpy (buf, "watch:", 6);
+           memcpy (buf, "watch:", 6);
            buf += 6;
 
            addr = (*the_target->stopped_data_address) ();
This page took 0.024148 seconds and 4 git commands to generate.