]> git.pld-linux.org Git - packages/libsrtp2.git/blob - test-build.patch
7c21c5f6ad8ca15379b39d21c972081b51777d6f
[packages/libsrtp2.git] / test-build.patch
1 diff -ur libsrtp-2.3.0/test/util.c libsrtp-2.3.0-build/test/util.c
2 --- libsrtp-2.3.0/test/util.c   2019-12-23 10:58:25.000000000 +0100
3 +++ libsrtp-2.3.0-build/test/util.c     2021-10-16 23:09:56.357524543 +0200
4 @@ -49,7 +49,7 @@
5  #include <stdint.h>
6  
7  /* include space for null terminator */
8 -char bit_string[MAX_PRINT_STRING_LEN + 1];
9 +char test_bit_string[MAX_PRINT_STRING_LEN + 1];
10  
11  static inline int hex_char_to_nibble(uint8_t c)
12  {
13 @@ -157,11 +157,11 @@
14      }
15  
16      for (i = 0; i < length; i += 2) {
17 -        bit_string[i] = nibble_to_hex_char(*str >> 4);
18 -        bit_string[i + 1] = nibble_to_hex_char(*str++ & 0xF);
19 +        test_bit_string[i] = nibble_to_hex_char(*str >> 4);
20 +        test_bit_string[i + 1] = nibble_to_hex_char(*str++ & 0xF);
21      }
22 -    bit_string[i] = 0; /* null terminate string */
23 -    return bit_string;
24 +    test_bit_string[i] = 0; /* null terminate string */
25 +    return test_bit_string;
26  }
27  
28  static const char b64chars[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
This page took 0.070146 seconds and 2 git commands to generate.