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.

22 lines
663 B

  1. Index: netcat-0.7.1/src/flagset.c
  2. ===================================================================
  3. --- netcat-0.7.1.orig/src/flagset.c 2009-02-06 19:56:01.000000000 +0100
  4. +++ netcat-0.7.1/src/flagset.c 2009-02-06 19:56:13.000000000 +0100
  5. @@ -134,7 +134,7 @@
  6. int netcat_flag_count(void)
  7. {
  8. - register char c;
  9. + register unsigned char c;
  10. register int i;
  11. int ret = 0;
  12. @@ -154,7 +154,7 @@
  13. Assumed that the bit number 1 is the sign, and that we will shift the
  14. bit 1 (or the bit that takes its place later) until the the most right,
  15. WHY it has to keep the wrong sign? */
  16. - ret -= (c >> 7);
  17. + ret += (c >> 7);
  18. c <<= 1;
  19. }
  20. }