GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Wolf480pl (wolf480pl@mstdn.io)'s status on Monday, 22-Jun-2026 05:26:32 JSTWolf480plWolf480pl
    in reply to
    • Stephen Brooks 🦆

    @sjb
    you've heard of parsing HTML with regexes, but have you heard of extracting a single JSON key with strstr?

    lines 174-148:

    // Crude, minimal search for the requested "name" string inside Varlink JSON
    char *name_ptr = strstr(buffer, "\"name\"");
    if (!name_ptr) return;
    name_ptr = strchr(name_ptr, ':');
    if (!name_ptr) return;

    holy shit this is terrifying

    In conversationabout 12 days ago from mstdn.iopermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.