diff -r 80387fbc46c5 -r 42ae69d3c4a8 symbian-qemu-0.9.1-12/qemu-symbian-svp/qemu-char.c --- a/symbian-qemu-0.9.1-12/qemu-symbian-svp/qemu-char.c Tue Jun 15 12:57:21 2010 +0100 +++ b/symbian-qemu-0.9.1-12/qemu-symbian-svp/qemu-char.c Mon Jul 05 15:30:26 2010 +0100 @@ -615,7 +615,7 @@ { CharDriverState *ret = NULL; const char *temp_format = "/tmp/%s"; - char *fname = qemu_mallocz(sizeof(char) * (strlen(temp_path) + strlen(temp_file))); + char *fname = qemu_mallocz(sizeof(char) * (strlen(temp_format) + strlen(temp_file))); if (fname) { sprintf(fname, temp_format, temp_file);