MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

prevent calloc crash

+2 -3
+2 -3
src/ant.c
··· 2105 2105 } 2106 2106 2107 2107 L_DEFAULT: { 2108 - buf = (char *)ant_calloc(64); 2109 - len = tostr(js, value, buf, 64); 2110 - ant_value_t result = js_mkstr(js, buf, len); 2108 + buf = tostr_alloc(js, value); 2109 + ant_value_t result = js_mkstr(js, buf, strlen(buf)); 2111 2110 free(buf); return result; 2112 2111 } 2113 2112 }