View | Details | Raw Unified | Return to bug 172566
Collapse All | Expand All

(-)head/games/random/randomize_fd.c (+1 lines)
Lines 207-212 Link Here
207
		goto make_token;
207
		goto make_token;
208
	}
208
	}
209
209
210
	free(buf);
210
	for (i = numnode; i > 0; i--) {
211
	for (i = numnode; i > 0; i--) {
211
		selected = random() % numnode;
212
		selected = random() % numnode;
212
213
(-)head/games/fortune/fortune/fortune.c (+4 lines)
Lines 576-581 Link Here
576
	if (*head == NULL)
576
	if (*head == NULL)
577
		*head = *tail = fp;
577
		*head = *tail = fp;
578
	else if (fp->percent == NO_PROB) {
578
	else if (fp->percent == NO_PROB) {
579
		if (*tail == NULL) {
580
			fprintf(stderr, "No tail file given\n");
581
			exit(1);
582
		}
579
		(*tail)->next = fp;
583
		(*tail)->next = fp;
580
		fp->prev = *tail;
584
		fp->prev = *tail;
581
		*tail = fp;
585
		*tail = fp;
(-)head/games/bcd/bcd.c (-3 lines)
Lines 129-137 Link Here
129
{
129
{
130
	char cardline[80];
130
	char cardline[80];
131
131
132
	/* revoke setgid privileges */
133
	setgid(getgid());
134
135
	/*
132
	/*
136
	 * The original bcd prompts with a "%" when reading from stdin,
133
	 * The original bcd prompts with a "%" when reading from stdin,
137
	 * but this seems kind of silly.  So this one doesn't.
134
	 * but this seems kind of silly.  So this one doesn't.
(-)head/games/caesar/caesar.c (-3 lines)
Lines 82-90 Link Here
82
	char *inbuf;
82
	char *inbuf;
83
	int obs[26], try, winner;
83
	int obs[26], try, winner;
84
84
85
	/* revoke setgid privileges */
86
	setgid(getgid());
87
88
	if (argc > 1)
85
	if (argc > 1)
89
		printit(argv[1]);
86
		printit(argv[1]);

Return to bug 172566