Search
lxdream.org :: lxdream :: r1045:0c46bac28888
lxdream 0.9.1
released Jun 29
Download Now
changeset1045:0c46bac28888
parent1044:01e46b0aafaf
child1046:9e2c1dd2b537
authornkeynes
dateSat Jun 27 10:09:21 2009 +0000 (11 years ago)
Change tempfile call to use mkstemp, for systems without mkstemps
src/vmu/vmuvol.c
1.1 --- a/src/vmu/vmuvol.c Sat Jun 27 10:08:42 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;
.