Charles Nicholson's Avatar

Charles Nicholson

@cnich

49
Followers
122
Following
5
Posts
16.05.2023
Joined
Posts Following

Latest posts by Charles Nicholson @cnich

No no, it's a great bug! I'll file it; I have a growing list of stuff I want to improve / fix.

07.01.2026 17:51 👍 0 🔁 0 💬 0 📌 0

It's a fascinating corner case, because of course if the example used %s, the outputs would be identical- no printf implementation can discern a user-supplied \0 from a compiler-supplied \0. It's the fact that it was a %c that introduces the nanoprintf bug- it's saying "i know i know, but print it."

07.01.2026 15:36 👍 0 🔁 0 💬 0 📌 0

That's a little ambiguous, because that example requests a terminating null character with nothing after it, so you could maybe argue either way. Though, the standard does not carve out anything for the contents of the the string, so IMO the intent is clear: glibc is correct nanoprintf is wrong.

07.01.2026 15:33 👍 0 🔁 0 💬 2 📌 0

Sorry, I just logged into bluesky for the first time in forever! C17 7.21.6.5.3 says "snprintf ... returns the number of characters that would have been written had n been sufficiently large, not counting the terminating null character".

07.01.2026 15:32 👍 0 🔁 0 💬 1 📌 0

Linux is so frustrating. Today's bullshit: bluez is the BLE stack, but it doesn't have a normal API- you have to grope at it through dbus. It's fine I guess that they want a structured bus for everything, but FFS give me an API that hides the bus and its bullshit from me. Such a design fail.

26.05.2025 21:34 👍 1 🔁 1 💬 0 📌 0
The Constitution does not tolerate willful disobedience of judicial orders — especially by
officials of a coordinate branch who have sworn an oath to uphold it. To permit such officials to
freely “annul the judgments of the courts of the United States” would not just “destroy the rights
acquired under those judgments”; it would make “a solemn mockery” of “the constitution itself.”
United States v. Peters, 9 U.S. (5 Cranch) 115, 136 (1809) (Marshall, C.J.). “So fatal a result
must be deprecated by all.” Id.

The Constitution does not tolerate willful disobedience of judicial orders — especially by officials of a coordinate branch who have sworn an oath to uphold it. To permit such officials to freely “annul the judgments of the courts of the United States” would not just “destroy the rights acquired under those judgments”; it would make “a solemn mockery” of “the constitution itself.” United States v. Peters, 9 U.S. (5 Cranch) 115, 136 (1809) (Marshall, C.J.). “So fatal a result must be deprecated by all.” Id.

Judge Boasberg is now the first judge to find probable cause to hold the Trump admin in criminal contempt of court.

This sets up a significant escalation between the judiciary and the executive at a time when the administration is already flirting with defying the Supreme Court.

16.04.2025 16:15 👍 722 🔁 137 💬 6 📌 11
Post image

A poem for my last day working at the writing center for the semester (by Joseph Fasano)

23.11.2024 02:09 👍 15539 🔁 3287 💬 146 📌 132