15 lines
386 B
Plaintext
15 lines
386 B
Plaintext
$OpenBSD: patch-src_common_spd_getline_c,v 1.1 2018/04/24 21:20:04 naddy Exp $
|
|
|
|
Index: src/common/spd_getline.c
|
|
--- src/common/spd_getline.c.orig
|
|
+++ src/common/spd_getline.c
|
|
@@ -46,7 +46,7 @@
|
|
|
|
ssize_t spd_getline(char **lineptr, size_t * n, FILE * f)
|
|
{
|
|
- char ch;
|
|
+ int ch;
|
|
ssize_t buf_pos = 0;
|
|
ssize_t needed = 2; /* Always buf_pos + 2 (see below). */
|
|
size_t new_length = 0;
|