nostr:npub1wg02ev7lfmnrwsjqu2tcm2qm4gw65aw0dyywfwvgafqnqyf02wmqhht0yf I see 2 issues there:
- strdup is assumed to succeed (although allocating only 6 bytes is very likely to work).
- free()'ing a memory address that doesn't correspond to the address malloc()'d is undefined behavior.
Regardless, that really should be written as:
#include
int main()
{
puts("Hello"+1);
return 0;
}