From 00a29894e9de79fb2dd1f83041ac53b7db44528b Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 28 Feb 2019 18:22:52 +0100 Subject: [PATCH] Fixed background color for identicons. It was 2 characters too short. That resulted in an error. --- src/libravatarserv.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libravatarserv.cpp b/src/libravatarserv.cpp index 77007ed..5cc3fa9 100644 --- a/src/libravatarserv.cpp +++ b/src/libravatarserv.cpp @@ -88,8 +88,7 @@ int main() avatar.fallback.substr(0, 2) == "mm") { // MD5 hash of 'mp' - image = image::get("1f2dfa567dcf95833eddf7aec167fec7", - avatar.size); + image = image::get("1f2dfa567dcf95833eddf7aec167fec7", avatar.size); if (image.error == 0) { image::write(image); @@ -117,7 +116,7 @@ int main() } Identiconpp identicon(5, 5, Identiconpp::algorithm::sigil, - "#fefefe", + "fefefeff", { // The same colors ivatar uses. "2d4fffff", // Blue "feb42cff", // Yellow