File: 06_handle-multibytes-headers

package info (click to toggle)
ffproxy 1.6-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 896 kB
  • sloc: ansic: 2,311; asm: 578; sh: 425; makefile: 93
file content (15 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Patch which allows ffproxy to handle multibytes characters in headers
Author: Paul Merrill <napalminc@gmail.com>
Bug-Debian: http://bugs.debian.org/661425
Last-Update: 2012-03-24
--- a/request.c
+++ b/request.c
@@ -221,7 +221,7 @@
 {
 	char            c;
 
-	if (read(s, &c, 1) != 1 || c < 1)
+	if (read(s, &c, 1) != 1 || c == 0)
 		return -1;
 	else
 		return c;