Petri Hintukainen pushed to branch master at VideoLAN / libaacs
Commits:
3959c8f4 by npzacs at 2021-05-01T20:34:16+03:00
Fix crypto_strerror
- - - - -
1 changed file:
- src/libaacs/crypto.c
Changes:
=====================================
src/libaacs/crypto.c
=====================================
@@ -307,9 +307,9 @@ void crypto_strerror(int err, char *buf, size_t buf_size)
#else
const char *msg = gcry_strerror(err);
buf[0] = 0;
- if (str) {
- strncpy(buf, str, buf_size);
- str[buf_size - 1] = 0;
+ if (msg) {
+ strncpy(buf, msg, buf_size);
+ buf[buf_size - 1] = 0;
}
#endif
}
View it on GitLab:
https://code.videolan.org/videolan/libaacs/-/commit/3959c8f4ce736af0fe51f344a402cfa8751b8623
--
View it on GitLab:
https://code.videolan.org/videolan/libaacs/-/commit/3959c8f4ce736af0fe51f344a402cfa8751b8623
You're receiving this email because of your account on code.videolan.org.
_______________________________________________
libaacs-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libaacs-devel