]> git.proxmox.com Git - qemu.git/blobdiff - qemu-char.c
Make OpenBSD sparc-softmmu compile warning free
[qemu.git] / qemu-char.c
index 27cdd325a289b48380da0c4244c585b3708b6193..bc024e08d989bd6d722a50ef2849ef3f7e777287 100644 (file)
@@ -2053,11 +2053,11 @@ static CharDriverState *qemu_chr_open_tcp(const char *host_str,
     if (is_listen) {
         chr->filename = qemu_malloc(256);
         if (is_unix) {
-            strcpy(chr->filename, "unix:");
+            pstrcpy(chr->filename, 256, "unix:");
         } else if (is_telnet) {
-            strcpy(chr->filename, "telnet:");
+            pstrcpy(chr->filename, 256, "telnet:");
         } else {
-            strcpy(chr->filename, "tcp:");
+            pstrcpy(chr->filename, 256, "tcp:");
         }
         offset = strlen(chr->filename);
     }