Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 527370
Collapse All | Expand All

(-)src/librc/librc-daemon.c.old (-2 / +2 lines)
Lines 556-563 Link Here
556
556
557
		char *ch_root = rc_service_value_get(basename_c(service), "chroot");
557
		char *ch_root = rc_service_value_get(basename_c(service), "chroot");
558
		char *spidfile = pidfile;
558
		char *spidfile = pidfile;
559
		if (ch_root) {
559
		if (ch_root && pidfile) {
560
			spidfile = malloc(strlen(ch_root) + strlen(pidfile));
560
			spidfile = malloc(strlen(ch_root) + strlen(pidfile) + 1);
561
			strcpy(spidfile, ch_root);
561
			strcpy(spidfile, ch_root);
562
			strcat(spidfile, pidfile);
562
			strcat(spidfile, pidfile);
563
		}
563
		}

Return to bug 527370