Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Subtitle files can hack your computer

Name: Anonymous 2017-05-24 10:23

http://blog.checkpoint.com/2017/05/23/hacked-in-translation/
Was this brought on us by using media players made in C?

Name: Anonymous 2017-05-28 20:16

>>39
Fixed.

#include <stdio.h>

int main(void)
{
/*
* buf is initialized to an array of 32 zero bytes, and since the
* fread call will read in at most 31 bytes into buf, the resulting
* string is guaranteed to be nul-terminated.
*/
char buf[32] = {0};
fread(buf, 1, 31, stdin);
printf("You said %s!\n", buf);
return(0);
}


>>40
That's not an issue with my program, it's an issue with the shell/terminal.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List