View | Details | Raw Unified
Collapse All | Expand All

(-) ../eject-2.0.13.old/eject.c (+4 lines)
 Lines 309-314    Link Here 
	char *buf;
	char *buf;
	buf = (char *) malloc(strlen(name)+14); /* to allow for "/dev/cdroms/ + "0" + null */
	buf = (char *) malloc(strlen(name)+14); /* to allow for "/dev/cdroms/ + "0" + null */
	if (buf==NULL) {
		fprintf(stderr, _("%s: could not allocate memory\n"), programName);
		exit(1);
	}
	if ((name[0] == '.') || (name[0] == '/')) {
	if ((name[0] == '.') || (name[0] == '/')) {
		strcpy(buf, name);
		strcpy(buf, name);