Search
lxdream.org :: lxdream/src/vmu/vmuvol.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/vmu/vmuvol.c
changeset 1045:0c46bac28888
prev1042:0fd066956482
next1056:d0896e6530d6
author nkeynes
date Sat Jun 27 10:09:21 2009 +0000 (11 years ago)
permissions -rw-r--r--
last change Change tempfile call to use mkstemp, for systems without mkstemps
file annotate diff log raw
1.1 --- a/src/vmu/vmuvol.c Fri Jun 26 13:53:54 2009 +0000
1.2 +++ b/src/vmu/vmuvol.c Sat Jun 27 10:09:21 2009 +0000
1.3 @@ -195,8 +195,8 @@
1.4 struct vmu_chunk_header chunk;
1.5 int i;
1.6
1.7 - gchar *tempfile = get_filename_at(filename, ".XXXXXXXX.vmu");
1.8 - int fd = mkstemps( tempfile, 4 );
1.9 + gchar *tempfile = get_filename_at(filename, ".XXXXXXX");
1.10 + int fd = mkstemp( tempfile );
1.11 if( fd == -1 ) {
1.12 g_free(tempfile);
1.13 return FALSE;
.