Skip to content

Commit 813cffe

Browse files
authored
Merge pull request #2228 from evgenyz/fix-compat-dev-tty-warnings
Fix `unterminated-string-initialization` errors
2 parents 5cf3106 + aa0c88d commit 813cffe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compat/dev_to_tty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static int driver_name(char *restrict const buf, unsigned maj, unsigned min){
142142
}
143143

144144
// major 204 is a mess -- "Low-density serial ports"
145-
static const char low_density_names[][6] = {
145+
static const char low_density_names[][7] = {
146146
"LU0", "LU1", "LU2", "LU3",
147147
"FB0",
148148
"SA0", "SA1", "SA2",

src/OVAL/probes/SEAP/generic/xbase64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "xbase64.h"
2929

3030
#if defined(WANT_XBASE64)
31-
static const char xb64_enc_alphabet[64] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:_";
31+
static const char xb64_enc_alphabet[65] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:_";
3232
static const char xb64_dec_alphabet[75] = {
3333
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 62, 0, 0, 0, 0, 0, 0, 36, 37, 38,
3434
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
@@ -152,7 +152,7 @@ size_t xbase64_decode (const char *data, size_t size, uint8_t **buffer) {
152152
#endif /* WANT_XBASE64 */
153153

154154
#if defined(WANT_BASE64)
155-
static const char b64_enc_alphabet[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
155+
static const char b64_enc_alphabet[65] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
156156
static const char b64_dec_alphabet[75] = {
157157
/* 0 */ 52,
158158
/* 1 */ 53,

0 commit comments

Comments
 (0)