From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM autolearn=no autolearn_force=no version=3.4.6 Received: from gnuweeb.org (unknown [51.81.211.47]) by gnuweeb.org (Postfix) with ESMTPSA id F3DCA832F1; Sun, 12 Mar 2023 19:20:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1678648819; bh=13uQW1peaEqyj+OPy35l4Y3zFra62cDjWsbzpiJWHes=; h=From:To:Cc:Subject:Date:From; b=J5zR0ZjtQesWoh118xkbSGl69B/xI1bBrpKmllh1zMXVvUo7M1vcek+4XxFzsqZlE Pc6uhwo77oa0R769uVzGYRkzwVyiZcEE7SdNQ4hYt0A8N6HIkFSrAf3i7Hyr9ZSvJY Ui7jvKYt3eZXOeiW50Tdi3OL1bh4UJmS33qUcbRoSUtrOg7s91y96v9zNNzZi5JhaD 8hl/qtoDkIkZz3snXzncZP81PLt+OUoWNkTXv3HsHqfM1Qtp+QSNrM56kEGQdZnuSI hecMxVUSz58sA3LWKpXfoMh1sJKlOSdo0r65Qh3V+/3dGdICdmN0k8ytiYhS7D4Mo+ tCoqVrzPS1A5Q== From: Alviro Iskandar Setiawan To: Ammar Faizi Cc: Irvan Malik Azantha , GNU/Weeb Mailing List Subject: [GIT PULL] lib/tgapi fixes 2023-03-13 Date: Sun, 12 Mar 2023 19:20:12 +0000 Message-Id: <20230312192012.3716328-1-alviro.iskandar@gnuweeb.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: lib/tgapi fixes: - Fix `-Wshorten-64-to-32` warning due to strlen(). Found this when compiling with clang. - Increase the url buffer size in send message function. The previous buffer size is too small. A Telegram message can have up to 4096 characters per text message. - Trivial whitespaces cleanup. - Simplify curl code, avoid code duplication. pleasee pull!!! tq The following changes since commit 2ca56f61c307813ad7069cf08c350f2ff61fc615: Merge branch 'master' of https://github.com/kyzsuukii/GNUWeebBot2 (2023-03-10 17:30:50 +0700) are available in the Git repository at: https://github.com/alviroiskandar/GNUWeebBot2 tags/fixes-2023-03-13 for you to fetch changes up to fe8c2278ab166bc8c41dbf2f40ed043511b62a03: lib/tgapi: Simplify curl code for tgapi calls (2023-03-11 06:19:43 +0700) ---------------------------------------------------------------- fixes-2023-03-13 ---------------------------------------------------------------- Alviro Iskandar Setiawan (4): lib/tgapi: Fix `-Wshorten-64-to-32` warning lib/tgapi: Increase the url buffer size lib/tgapi: Clean trailing whitespaces lib/tgapi: Simplify curl code for tgapi calls lib/tgapi.c | 68 ++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 37 deletions(-) -- Alviro Iskandar Setiawan