diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2004-02-13 08:03:26 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2004-02-13 08:03:26 +0000 |
commit | 4b46d748db1c2151e41b85b704fabea5b0f02c92 (patch) | |
tree | 31998b15064a936fb7f62e076162444ea6c80510 /net/ayttm/files/patch-modules::yahoo2::libyahoo2::yahoo_httplib.c | |
parent | Update to 0.30 (Based on SQLite 2.8.11). (diff) |
Fix build on non-i386 arch.
PR: ports/62534
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=100827
Diffstat (limited to 'net/ayttm/files/patch-modules::yahoo2::libyahoo2::yahoo_httplib.c')
-rw-r--r-- | net/ayttm/files/patch-modules::yahoo2::libyahoo2::yahoo_httplib.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/ayttm/files/patch-modules::yahoo2::libyahoo2::yahoo_httplib.c b/net/ayttm/files/patch-modules::yahoo2::libyahoo2::yahoo_httplib.c new file mode 100644 index 000000000000..a07847a32143 --- /dev/null +++ b/net/ayttm/files/patch-modules::yahoo2::libyahoo2::yahoo_httplib.c @@ -0,0 +1,24 @@ +--- modules/yahoo2/libyahoo2/yahoo_httplib.c.orig Fri Jan 16 14:39:20 2004 ++++ modules/yahoo2/libyahoo2/yahoo_httplib.c Sun Feb 8 00:33:04 2004 +@@ -200,12 +200,16 @@ + str[bpos++] = instr[ipos++]; + if(!instr[ipos]) + break; +- ipos++; + +- entity[0]=instr[ipos++]; +- entity[1]=instr[ipos++]; +- sscanf(entity, "%2x", &dec); +- str[bpos++] = (char)dec; ++ if(instr[ipos+1] && instr[ipos+2]) { ++ ipos++; ++ entity[0]=instr[ipos++]; ++ entity[1]=instr[ipos++]; ++ sscanf(entity, "%2x", &dec); ++ str[bpos++] = (char)dec; ++ } else { ++ str[bpos++] = instr[ipos++]; ++ } + } + str[bpos]='\0'; + |