Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/misc/bb/files/patch-zoom.c
42635 views
1
--- zoom.c.orig 2026-02-12 17:47:35 UTC
2
+++ zoom.c
3
@@ -241,13 +241,13 @@ static /*INLINE */ void mkrealloc_table(register numbe
4
#endif
5
if (dyndata == NULL) {
6
fprintf(stderr, "XaoS fatal error:Could not allocate memory for"
7
- "temporary dynamical data of size:%i\n"
8
+ "temporary dynamical data of size:%zu\n"
9
"I am unable to handle this problem so please resize to lower window\n", (size) * (DSIZE + 1) * sizeof(struct dyn_data) + size * sizeof(int) + size * sizeof(int));
10
return;
11
}
12
if (best == NULL) {
13
fprintf(stderr, "XaoS fatal error:Could not allocate memory for"
14
- "temporary dynamical data of size:%i\n"
15
+ "temporary dynamical data of size:%zu\n"
16
"I am unable to handle this problem so please resize to lower window\n", (size) * (DSIZE + 1) * sizeof(struct dyn_data) + size * sizeof(int) + size * sizeof(int));
17
#ifndef HAVE_ALLOCA
18
free(dyndata);
19
@@ -256,7 +256,7 @@ static /*INLINE */ void mkrealloc_table(register numbe
20
}
21
if (best1 == NULL) {
22
fprintf(stderr, "XaoS fatal error:Could not allocate memory for"
23
- "temporary dynamical data of size:%i\n"
24
+ "temporary dynamical data of size:%zu\n"
25
"I am unable to handle this problem so please resize to lower window\n", (size) * (DSIZE + 1) * sizeof(struct dyn_data) + size * sizeof(int) + size * sizeof(int));
26
#ifndef HAVE_ALLOCA
27
free(dyndata);
28
@@ -586,13 +586,13 @@ static /*INLINE */ void moveoldpoints(void)
29
#endif
30
if (size == NULL) {
31
fprintf(stderr, "XaoS fratal error:Could not allocate memory for"
32
- "temporary dynamical data of size:%i\n"
33
+ "temporary dynamical data of size:%zu\n"
34
"I am unable to handle this problem so please resize to lower window\n", 2 * d->width * sizeof(int));
35
return;
36
}
37
if (start == NULL) {
38
fprintf(stderr, "XaoS fratal error:Could not allocate memory for"
39
- "temporary dynamical data of size:%i\n"
40
+ "temporary dynamical data of size:%zu\n"
41
"I am unable to handle this problem so please resize to lower window\n", 2 * d->width * sizeof(int));
42
#ifndef HAVE_ALLOCA
43
free(size);
44
45