29 lines
1004 B
Diff
29 lines
1004 B
Diff
|
From fd01737270d98c28465c86a688bd7d1c640486c5 Mon Sep 17 00:00:00 2001
|
|||
|
From: Michael Marley <michael@michaelmarley.com>
|
|||
|
Date: Wed, 6 Apr 2022 21:47:49 -0400
|
|||
|
Subject: [PATCH] Fix FTBFS in utils.c
|
|||
|
|
|||
|
U+0020 SPACE and U+00A0 NO-BREAK SPACE look the same, but they
|
|||
|
aren't the same.
|
|||
|
|
|||
|
[Retrieved from:
|
|||
|
https://github.com/tvheadend/tvheadend/commit/fd01737270d98c28465c86a688bd7d1c640486c5]
|
|||
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|||
|
---
|
|||
|
src/utils.c | 2 +-
|
|||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|||
|
|
|||
|
diff --git a/src/utils.c b/src/utils.c
|
|||
|
index eecb10e116..bc6401d22f 100644
|
|||
|
--- a/src/utils.c
|
|||
|
+++ b/src/utils.c
|
|||
|
@@ -616,7 +616,7 @@ sha256sum ( const char *str, int lowercase )
|
|||
|
char *
|
|||
|
sha512sum256 ( const char *str, int lowercase )
|
|||
|
{
|
|||
|
-#if OPENSSL_VERSION_NUMBER >= 0x1010101fL && !defined(LIBRESSL_VERSION_NUMBER)
|
|||
|
+#if OPENSSL_VERSION_NUMBER >= 0x1010101fL && !defined(LIBRESSL_VERSION_NUMBER)
|
|||
|
return openssl_hash_hexstr(str, lowercase, EVP_sha512_256(), 32);
|
|||
|
#else
|
|||
|
return NULL;
|