Skip to content

Fix unit test compilation on Window#2802

Merged
IvanNardi merged 1 commit into
ntop:devfrom
IvanNardi:win-fix
Apr 28, 2025
Merged

Fix unit test compilation on Window#2802
IvanNardi merged 1 commit into
ntop:devfrom
IvanNardi:win-fix

Conversation

@IvanNardi

Copy link
Copy Markdown
Collaborator
 ndpiReader.c:6415:28: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (65 chars into 64 available) [-Werror=unterminated-string-initialization]
 6415 |   u_char enc_dec_key[64] = "9dedb817e5a8805c1de62eb8982665b9a2b4715174c34d23b9a46ffafacfb2a7" /* SHA256("nDPI") */;

```
 ndpiReader.c:6415:28: error: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (65 chars into 64 available) [-Werror=unterminated-string-initialization]
 6415 |   u_char enc_dec_key[64] = "9dedb817e5a8805c1de62eb8982665b9a2b4715174c34d23b9a46ffafacfb2a7" /* SHA256("nDPI") */;
```
@sonarqubecloud

Copy link
Copy Markdown

@IvanNardi IvanNardi merged commit 9a6d0b3 into ntop:dev Apr 28, 2025
@IvanNardi IvanNardi deleted the win-fix branch April 28, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant