diff --git a/sched/sched_shmem.cpp b/sched/sched_shmem.cpp index 3ea6e0070a..d5403f4bd6 100644 --- a/sched/sched_shmem.cpp +++ b/sched/sched_shmem.cpp @@ -113,7 +113,7 @@ void get_buda_plan_classes(vector &pcs) { FILE *f = boinc::fopen("../buda_plan_classes", "r"); if (!f) return; char buf[256]; - while (fgets(buf, 256, f)) { + while (boinc::fgets(buf, 256, f)) { strip_whitespace(buf); pcs.push_back(buf); }