diff options
author | Dave Woodfall | 2020-01-09 11:14:49 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2020-01-12 02:47:52 +0100 |
commit | 9044f879a9a70226159660117c245a425a808293 (patch) | |
tree | 8ebbaa9baafe6ee3abd5ad6a07775e6447c9204e /network/elinks/patches/0007-gopher-move_null.patch | |
parent | 7bf5d624be78d025b436312d3a1dd7a60c2b26f9 (diff) | |
download | slackbuilds-9044f879a9a70226159660117c245a425a808293.tar.gz |
network/elinks: Add gopher patch for html entities
Diffstat (limited to 'network/elinks/patches/0007-gopher-move_null.patch')
-rw-r--r-- | network/elinks/patches/0007-gopher-move_null.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/network/elinks/patches/0007-gopher-move_null.patch b/network/elinks/patches/0007-gopher-move_null.patch new file mode 100644 index 0000000000..01751c497a --- /dev/null +++ b/network/elinks/patches/0007-gopher-move_null.patch @@ -0,0 +1,16 @@ +################################################################### +# Move the added null terminator one char forwards +# dave@slackbuilds.org +################################################################### +diff -Naur a/src/protocol/gopher/gopher.c b/src/protocol/gopher/gopher.c +--- a/src/protocol/gopher/gopher.c 2020-01-08 06:52:23.491455711 +0000 ++++ b/src/protocol/gopher/gopher.c 2020-01-08 06:51:41.160210431 +0000 +@@ -638,7 +638,7 @@ + assert(line < end); + + /* Just to be safe NUL terminate the line */ +- end[-2] = 0; ++ end[-1] = 0; + + return line[0] == '.' && !line[1] ? NULL : line; + } |