浏览代码

:art: Utilisation des nouvelles macros

Loquicom 6 年之前
父节点
当前提交
f4ea6d89ae
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);