diff -r e8445573c812 -r e6e160c7ea33 progs/C0.c --- a/progs/C0.c Mon Oct 06 02:44:23 2014 +0100 +++ b/progs/C0.c Mon Oct 06 20:52:53 2014 +0100 @@ -1,23 +1,18 @@ #include #include -#include void foo (char *bar) { - float my_float = 10.5; // in hex: \x41\x28\x00\x00 - char buffer[28]; + long my_long = 101010101; // in hex: \xB5\x4A\x05\x06 + char buffer[28]; - printf("my float value = %f\n", my_float); - - strcpy(buffer, bar); - - printf("my float value = %f\n", my_float); + printf("my_long value = %lu\n", my_long); + strcpy(buffer, bar); + printf("my_long value = %lu\n", my_long); } int main (int argc, char **argv) { - foo("my string is too long !!!!! "); // all is normal - //foo("my string is too long !!!!! \x10\x10\xc0\x42"); // overwrites my_float + foo("my string is too long !!!!!"); return 0; -} - +} \ No newline at end of file