symbian-qemu-0.9.1-12/qemu-symbian-svp/qemu-char.c
branchGCC_SURGE
changeset 87 42ae69d3c4a8
parent 71 5158c0d3bde3
equal deleted inserted replaced
79:80387fbc46c5 87:42ae69d3c4a8
   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);