X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fpolyhedra.c;h=542dd1ec1a6d425bf873f31be4e598f9b80a3486;hb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;hp=c69f3540c4f60deb7c22c924b917d7d6441917b3;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/glx/polyhedra.c b/hacks/glx/polyhedra.c index c69f3540..542dd1ec 100644 --- a/hacks/glx/polyhedra.c +++ b/hacks/glx/polyhedra.c @@ -92,22 +92,22 @@ extern const char *progname; #define Malloc(lvalue,n,type) do {\ if (!(lvalue = (type*) calloc((n), sizeof(type)))) \ - Err("out of memory");\ + abort();\ } while(0) #define Realloc(lvalue,n,type) do {\ if (!(lvalue = (type*) realloc(lvalue, (n) * sizeof(type)))) \ - Err("out of memory");\ + abort();\ } while(0) #define Calloc(lvalue,n,type) do {\ if (!(lvalue = (type*) calloc(n, sizeof(type))))\ - Err("out of memory");\ + abort();\ } while(0) #define Matalloc(lvalue,n,m,type) do {\ if (!(lvalue = (type**) matalloc(n, (m) * sizeof(type))))\ - Err("out of memory");\ + abort();\ } while(0) #define Sprintfrac(lvalue,x) do {\ @@ -447,7 +447,7 @@ static const struct { "Catalan Solid", 30, 14}, - /* 33 */ {"2 3 5|", "Truncated Icosidodechedon", + /* 33 */ {"2 3 5|", "Truncated Icosidodecahedron", "Disdyakistriacontahedron", "Icosahedral (I[1])", "Archimedian Solid", @@ -2263,7 +2263,7 @@ construct_polyhedron (Polyhedron *P, Vector *v, int V, Vector *f, int F, facelets++; } else if (P->even != -1) { - if (hit[i]) { + if (hit && hit[i]) { push_face3 (result, P->incid[3][i], P->incid[0][i], ii); push_face3 (result, P->incid[1][i], P->incid[2][i], ii); } else {