equal
deleted
inserted
replaced
613 |
613 |
614 static CharDriverState *qemu_chr_open_tempfile_out(const char *temp_file) |
614 static CharDriverState *qemu_chr_open_tempfile_out(const char *temp_file) |
615 { |
615 { |
616 CharDriverState *ret = NULL; |
616 CharDriverState *ret = NULL; |
617 const char *temp_format = "/tmp/%s"; |
617 const char *temp_format = "/tmp/%s"; |
618 char *fname = qemu_mallocz(sizeof(char) * (strlen(temp_path) + strlen(temp_file))); |
618 char *fname = qemu_mallocz(sizeof(char) * (strlen(temp_format) + strlen(temp_file))); |
619 if (fname) |
619 if (fname) |
620 { |
620 { |
621 sprintf(fname, temp_format, temp_file); |
621 sprintf(fname, temp_format, temp_file); |
622 ret = qemu_chr_open_file_out(fname); |
622 ret = qemu_chr_open_file_out(fname); |
623 qemu_free(fname); |
623 qemu_free(fname); |