]> Kevux Git Server - fll/commitdiff
Update: Use f_file_stream_read() instead of f_file_read() after opening as a stream.
authorKevin Day <kevin@kevux.org>
Sun, 29 Jan 2023 22:23:47 +0000 (16:23 -0600)
committerKevin Day <kevin@kevux.org>
Sun, 29 Jan 2023 22:23:47 +0000 (16:23 -0600)
level_3/fake/c/private-fake.c

index bb858cc4bebd897237ca6cdf7f886360e998124d..09b19b7a5170f1f0756821a714dd20c946f5034a 100644 (file)
@@ -124,12 +124,12 @@ extern "C" {
         status = F_true;
       }
 
-      name_function = "f_file_open";
+      name_function = "f_file_stream_open";
       status = f_file_stream_open(path_file, f_string_empty_s, &file);
 
       if (F_status_is_error_not(status)) {
-        name_function = "f_file_read";
-        status = f_file_read(file, buffer);
+        name_function = "f_file_stream_read";
+        status = f_file_stream_read(file, buffer);
 
         f_file_stream_close(F_true, &file);
       }