diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-17 12:35:15 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-17 12:35:15 +0000 |
| commit | f65446c93a8c033b704cac46c49bad92d72316d1 (patch) | |
| tree | 45b515894e399d23a820bb4779ac45f68953b09b /include | |
| parent | a32a06c7cb257e254449919982ccb3d85c0bf0ca (diff) | |
fix stack size issue, replaced by heap
when input is too long, stack isn't large enough
Diffstat (limited to 'include')
| -rw-r--r-- | include/job.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/job.h b/include/job.h index 130bc5d..1ef63b5 100644 --- a/include/job.h +++ b/include/job.h @@ -51,7 +51,7 @@ struct job_t { /* The job struct */ void clearjob(struct job_t *job = _jobs); void initjobs(struct job_t *job = _jobs); int maxjid(struct job_t *job = _jobs); -int addjob(pid_t pid, int state, char *cmdline, struct job_t *job = _jobs); +int addjob(pid_t pid, int state, const char *cmdline, struct job_t *job = _jobs); int deletejob(pid_t pid, struct job_t *job = _jobs); pid_t fgpid(struct job_t *job = _jobs); struct job_t *getjobpid(pid_t pid, struct job_t *job = _jobs); |
