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.

20 lines
531 B

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