2018-09-27 21:23:54 +02:00
|
|
|
###################################################################
|
2020-01-25 19:52:51 +01:00
|
|
|
# Move the null terminator one char forwards.
|
2020-01-09 11:14:49 +01:00
|
|
|
# dave@slackbuilds.org
|
2018-09-27 21:23:54 +02:00
|
|
|
###################################################################
|
2020-01-25 19:52:51 +01:00
|
|
|
diff -Naur -x .git bb/src/protocol/gopher/gopher.c cc/src/protocol/gopher/gopher.c
|
|
|
|
--- bb/src/protocol/gopher/gopher.c 2020-01-14 03:24:11.259323801 +0000
|
|
|
|
+++ cc/src/protocol/gopher/gopher.c 2020-01-14 03:24:49.452454019 +0000
|
|
|
|
@@ -615,7 +615,7 @@
|
2018-09-27 21:23:54 +02:00
|
|
|
assert(line < end);
|
|
|
|
|
|
|
|
/* Just to be safe NUL terminate the line */
|
|
|
|
- end[-2] = 0;
|
|
|
|
+ end[-1] = 0;
|
|
|
|
|
|
|
|
return line[0] == '.' && !line[1] ? NULL : line;
|
|
|
|
}
|