Browse Source

:art: Utilisation des nouvelles macros

Loquicom 6 years ago
parent
commit
f4ea6d89ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mysh.c

+ 1 - 1
mysh.c

@@ -27,7 +27,7 @@ void test_write() {
 void show_current_dir(const char* before, const char* after) {
     char buffer[BUFFER_SIZE];
     if (getcwd(buffer, sizeof (buffer)) == NULL) {
-        perror("Erreur getcwd() ");
+        addperror("Erreur getcwd()");
     } else {
         if(before == NULL && after == NULL){
             printf("%s", buffer);