patch-bencode_cpp 528 B

12345678910111213141516
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- ctorrent-dnh2.orig/bencode.cpp 2006-01-02 03:38:01.000000000 +0100
  3. +++ ctorrent-dnh2/bencode.cpp 2009-06-01 19:10:05.000000000 +0200
  4. @@ -213,10 +213,10 @@ size_t bencode_end_dict_list(FILE *fp)
  5. return (EOF == fputc('e',fp)) ? 0 : 1;
  6. }
  7. -size_t bencode_path2list(const char *pathname, FILE *fp)
  8. +size_t bencode_path2list(char *pathname, FILE *fp)
  9. {
  10. char *pn;
  11. - const char *p = pathname;
  12. + char *p = pathname;
  13. if( bencode_begin_list(fp) != 1 ) return 0;