27 Content-Disposition: inline; filename=" 380 Last-Modified: Sat, 09 May 2026 15:59:39 GMT Expires: Tue, 06 May 2036 15:59:39 GMT ETag: "086390893775686a7ea21fc24da8b8ae7eb049e1" #include #include #include #include "vector.h" static int grow(struct vector *vec, int gently) { size_t new_alloc; void *new_data; new_alloc = vec->alloc * 3 / 2; if (!new_alloc) new_alloc = 8; new_data = realloc(vec->data, new_alloc * vec->size); if (!new_data) { if (gently) return ENOMEM; perror("vector.c:grow()"); exit(1); } vec->data = new_data; vec->alloc = new_alloc; return 0; } int vector_push(struct vector *vec, const void *data, int gently) { int rc; if (vec->count == vec->alloc && (rc = grow(vec, gently))) return rc; if (data) memmove(vec->data + vec->count * vec->size, data, vec->size); else memset(vec->data + vec->count * vec->size, 0, vec->size); vec->count++; return 0; } HTTP/1.0 500 Internal Server Error Date: Sat, 09 May 2026 15:59:39 GMT Server: OpenBSD httpd Connection: close Content-Type: text/html Content-Length: 518 500 Internal Server Error

500 Internal Server Error


OpenBSD httpd