tls: prepare for ECDH_anon ciphers
[oweals/busybox.git] / libbb / get_line_from_file.c
index f3d6c62039e969866e627e49ae90ab472d9b5ae9..903ff1fb684c6f88f7b018df5ce2ec8e2c697f00 100644 (file)
@@ -47,7 +47,9 @@ char* FAST_FUNC bb_get_chunk_from_file(FILE *file, size_t *end)
 /* Get line, including trailing \n if any */
 char* FAST_FUNC xmalloc_fgets(FILE *file)
 {
-       return bb_get_chunk_from_file(file, NULL);
+       size_t i;
+
+       return bb_get_chunk_from_file(file, &i);
 }
 /* Get line.  Remove trailing \n */
 char* FAST_FUNC xmalloc_fgetline(FILE *file)