OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../gatling/lowfat-0.25.patch
  5. # Copyright (C) 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./gatling.c.orig 2007-04-12 07:31:12.000000000 +0000
  17. +++ ./gatling.c 2007-04-12 07:31:38.000000000 +0000
  18. @@ -865,24 +865,6 @@
  19. return (c!='"' && c!='%' && c>=' ' && c!='+');
  20. }
  21. -unsigned long fmt_urlencoded(char* dest,const char* src,unsigned long len) {
  22. - register const unsigned char* s=(const unsigned char*) src;
  23. - unsigned long written=0,i;
  24. - for (i=0; i<len; ++i) {
  25. - if (!issafe(s[i])) {
  26. - if (dest) {
  27. - dest[written]='%';
  28. - dest[written+1]=fmt_tohex(s[i]>>4);
  29. - dest[written+2]=fmt_tohex(s[i]&15);
  30. - }
  31. - written+=3;
  32. - } else {
  33. - if (dest) dest[written]=s[i]; ++written;
  34. - }
  35. - }
  36. - return written;
  37. -}
  38. -
  39. void catencoded(array* a,char* s) {
  40. unsigned int len=str_len(s);
  41. char* buf=alloca(fmt_urlencoded(0,s,len));