Interesting
PaX
Bring back @[email protected]-posting
If they want to come back
I have watched maybe one episode of Seinfeld in my life
What's the deal with pronouns??
:jerry-seinfeld:
Every day I learn at least one new bleak fact about our hellworld
Actually it's more like 7
Lmaoooo but also :(
Least adventuristic American leftist project
The silliest and yet most serious site on the internet
Me in the general mega:
Me in the news mega:
This goes hard
Idk if this is someone in particular but we need more pirate emojis
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);
}
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! <----------- 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
Sad I can't make it to see totality :(