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

Collapse All | Expand All

(-)main.cpp.orig (-2 / +2 lines)
Lines 345-352 Link Here
345
	HomeDirectory = getenv("HOME");	// get users home directory
345
	HomeDirectory = getenv("HOME");	// get users home directory
346
	CurrentDirectory = getenv("PWD");	// get TuxDash's working directory
346
	CurrentDirectory = getenv("PWD");	// get TuxDash's working directory
347
	TuxHomeDirectory = new char[strlen(HomeDirectory)+strlen("/.tuxdash")+1];	// align space for the string containing the path to tuxdash's config directory
347
	TuxHomeDirectory = new char[strlen(HomeDirectory)+strlen("/.tuxdash")+1];	// align space for the string containing the path to tuxdash's config directory
348
	TuxWorkingDirectory = new char[strlen("./")+1];
348
	TuxWorkingDirectory = new char[strlen("/usr/share/games/tuxdash/")+1];
349
	strcpy(TuxWorkingDirectory, "./");
349
	strcpy(TuxWorkingDirectory, "/usr/share/games/tuxdash/");
350
	strcpy(TuxHomeDirectory, HomeDirectory);
350
	strcpy(TuxHomeDirectory, HomeDirectory);
351
	strcat(TuxHomeDirectory, "/.tuxdash");
351
	strcat(TuxHomeDirectory, "/.tuxdash");
352
352

Return to bug 54983