Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 132055 | Differences between
and this patch

Collapse All | Expand All

(-)utils/glvis/level.cpp (-4 / +9 lines)
Lines 33-40 Link Here
33
33
34
// MACROS ------------------------------------------------------------------
34
// MACROS ------------------------------------------------------------------
35
35
36
#define TEMP_FILE	"$glvis$$.$$$"
37
38
// TYPES -------------------------------------------------------------------
36
// TYPES -------------------------------------------------------------------
39
37
40
// EXTERNAL FUNCTION PROTOTYPES --------------------------------------------
38
// EXTERNAL FUNCTION PROTOTYPES --------------------------------------------
Lines 864-869 Link Here
864
{
862
{
865
	char filename[1024];
863
	char filename[1024];
866
	char destfile[1024];
864
	char destfile[1024];
865
	char tempfile[1024];
867
	char bakext[8];
866
	char bakext[8];
868
867
869
	if (Owner.Malloc && Owner.Free)
868
	if (Owner.Malloc && Owner.Free)
Lines 907-913 Link Here
907
		strcpy(bakext, ".~wa");
906
		strcpy(bakext, ".~wa");
908
	}
907
	}
909
908
910
	outwad.Open(TEMP_FILE, glwad->wadid);
909
910
	strcpy(tempfile, destfile);
911
	StripFilename(tempfile);
912
	if (tempfile[0])
913
		strcat(tempfile, "/");
914
	strcat(tempfile, "$glvis$$.$$$");
915
	outwad.Open(tempfile, glwad->wadid);
911
916
912
	//	Process lumps
917
	//	Process lumps
913
	if (mainwad == glwad)
918
	if (mainwad == glwad)
Lines 931-937 Link Here
931
	strcat(filename, bakext);
936
	strcat(filename, bakext);
932
	remove(filename);
937
	remove(filename);
933
	rename(destfile, filename);
938
	rename(destfile, filename);
934
	rename(TEMP_FILE, destfile);
939
	rename(tempfile, destfile);
935
}
940
}
936
941
937
} // namespace VavoomUtils
942
} // namespace VavoomUtils

Return to bug 132055