[Solved] Using sizeof with sprintf/vsnprintf corrupts text
Put in your code somewhere: printf (“size is %d\n”, sizeof (putbuf)); If it’s a pointer, you’ll probably get four or eight since that’ll be the size of a pointer on your system (four or eight will be common ones at the moment but it all depends on the size of your pointers). Remember that arrays … Read more