PaX

joined 2 years ago
[–] [email protected] 3 points 7 months ago

Sad I can't make it to see totality :(

[–] [email protected] 7 points 7 months ago* (last edited 7 months ago)

Interesting

sus-soviethow-compelling

[–] [email protected] 4 points 7 months ago

Bring back @[email protected]-posting

If they want to come back

I have watched maybe one episode of Seinfeld in my life

[–] [email protected] 6 points 7 months ago (1 children)

What's the deal with pronouns??

:jerry-seinfeld:

[–] [email protected] 4 points 7 months ago* (last edited 7 months ago)

Every day I learn at least one new bleak fact about our hellworld

yea

Actually it's more like 7

[–] [email protected] 13 points 7 months ago

Lmaoooo but also :(

Least adventuristic American leftist project

[–] [email protected] 20 points 7 months ago

The silliest and yet most serious site on the internet

Me in the general mega:

boykisser

Me in the news mega:

very-smart

[–] [email protected] 4 points 7 months ago (1 children)

This goes hard

pirate-jammin

Idk if this is someone in particular but we need more pirate emojis

[–] [email protected] 8 points 7 months ago* (last edited 7 months ago)

reposting this PSA from last thread cuz many people live in ignorance of this scary fact

#include <u.h>
#include <libc.h>

void
main(int argc, char* argv[])
{
    char buf[64];

    if(argc > 1) strncpy(buf, argv[1], sizeof buf);

.............

    exits(nil);
}

nerd speech-side-l-1 On my system (Plan 8 from Hell), argv isn't guaranteed to exist for the whole life of the program. So I copied the 2nd argument to my program to a buffer to use later! speech-side-l-2 <----------- They don't know that strncpy doesn't guarantee a null terminator, so if argv[1] exceeds the size of buf, buf will be unterminated, so they should either terminate it manually or use strlcpy if it's available on their system

[–] [email protected] 1 points 7 months ago (4 children)
view more: ‹ prev next ›