Explorar el Código

:art: Utilisation des nouvelles macros

Loquicom hace 6 años
padre
commit
f4ea6d89ae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);