~emersion/mrsh

a030fddfb5e41838423a99d04d8872e99282208d — emersion 3 years ago 11b4edf
Fix invalid read in process_notify
1 files changed, 1 insertions(+), 0 deletions(-)

M shell/process.c
M shell/process.c => shell/process.c +1 -0
@@ 24,6 24,7 @@ static void process_remove(struct process *proc) {
		if (running_processes.data[i] == proc) {
			memmove(&running_processes.data[i], &running_processes.data[i + 1],
				running_processes.len - i - 1);
			--running_processes.len;
			break;
		}
	}