From: Willy Tarreau Date: Sun, 29 Jun 2008 15:17:38 +0000 (+0200) Subject: [BUILD] change declaration of base64tab to fix build with Intel C++ X-Git-Tag: v1.3.16-rc1~247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69e989ccbcc1d5cbb623493d6c9cca169fb36ff6;p=thirdparty%2Fhaproxy.git [BUILD] change declaration of base64tab to fix build with Intel C++ I got a report that Intel C++ complains about the size of the base64tab in base64.c. Setting it to 65 chars to allow for the trailing zero fixes the problem. --- diff --git a/src/base64.c b/src/base64.c index 005c48684a..e0126225e7 100644 --- a/src/base64.c +++ b/src/base64.c @@ -1,7 +1,7 @@ /* * Ascii to Base64 conversion as described in RFC1421. * - * Copyright 2006 Willy Tarreau + * Copyright 2006-2008 Willy Tarreau * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -13,7 +13,7 @@ #include #include -const char base64tab[64]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; +const char base64tab[65]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /* Encodes bytes from to for at most chars (including * the trailing zero). Returns the number of bytes written. No check is made