Changeset: 38e89adb3e0b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/38e89adb3e0b
Modified Files:
gdk/gdk_bbp.c
Branch: Jul2021
Log Message:
fgets size argument is an int.
diffs (21 lines):
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -1485,7 +1485,7 @@ BBPdir_step(bat bid, BUN size, int n, ch
GDKerror("Writing BBP.dir file failed.\n");
goto bailout;
}
- if (fgets(buf, bufsize, *obbpfp) == NULL) {
+ if (fgets(buf, (int) bufsize, *obbpfp) == NULL) {
if (ferror(*obbpfp)) {
GDKerror("error reading backup BBP.dir.");
goto bailout;
@@ -1524,7 +1524,7 @@ BBPdir_last(int n, char *buf, size_t buf
goto bailout;
}
while (obbpf) {
- if (fgets(buf, bufsize, obbpf) == NULL) {
+ if (fgets(buf, (int) bufsize, obbpf) == NULL) {
if (ferror(obbpf)) {
GDKerror("error reading backup BBP.dir.");
goto bailout;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list