diff options
author | Salad <water_appreciator@protonmail.com> | 2020-10-05 17:37:55 +0200 |
---|---|---|
committer | Salad <water_appreciator@protonmail.com> | 2020-10-05 17:37:55 +0200 |
commit | f5eb08c14ccaa5e7a0e35364668ba28433459f9d (patch) | |
tree | e00b36d7c0bc787b41d07e56a3b0e08cbc002939 /src/c_input.c | |
parent | almost there : norme + miltiligne (diff) | |
download | 42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.gz 42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.bz2 42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.xz 42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.zst 42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.zip |
some changes, need MORE
Diffstat (limited to '')
-rw-r--r-- | src/c_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c_input.c b/src/c_input.c index 1cc8814..19d2ef3 100644 --- a/src/c_input.c +++ b/src/c_input.c @@ -63,7 +63,7 @@ c_get_line_num(char *line, line_num = 0; tcaps->lpos = 1; len = ft_strlen(line); - if (len < (tcaps->ws.ws_col - plen)) + if ((len) < (tcaps->ws.ws_col - plen)) return (1); while (it < len) { @@ -109,6 +109,6 @@ int16_t (void)tcaps; (void)line; msh->ret = 130; - c_new_line(NULL, tcaps, msh); + c_new_line(NULL, tcaps); return (1); } |