summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_echo.c2
-rw-r--r--src/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_echo.c b/src/ft_echo.c
index 22c1ec6..1ca8fc2 100644
--- a/src/ft_echo.c
+++ b/src/ft_echo.c
@@ -29,7 +29,7 @@ ft_echo(char **com, uint8_t n)
i = 2;
while (i < n)
{
- ft_putstr_fd(com[i], fd);
+ ft_putstr_fd(ft_strtrim(com[i], "\""), fd);
if (i != n - 1)
ft_putchar_fd(' ', fd);
i++;
diff --git a/src/main.c b/src/main.c
index 372e04f..3237496 100644
--- a/src/main.c
+++ b/src/main.c
@@ -38,7 +38,7 @@ int
if (!(arg = (char*)ft_calloc(129, sizeof(char))))
return (1);
i = 0;
- while (read(1, &c, 1) > 0)
+ while (read(STDIN_FILENO, &c, 1) > 0)
{
if (c == '\n')
break ;