Добрый день !
MS Visual Studio 2008
В тривиальном коде чтото ломает стек
typedef struct send_data
{
char p;
char p1[4];
char p2;
char p3[2];
char p4[3];
char p5[20];
char p6[10];
char p7[8];
char p8[2];
char p9[3];
char p10[12];
char p11[10];
char p12[2];
}send_data;
int _tmain(int argc, _TCHAR* argv[])
{
send_data send_block;
//
send_block.p='0';
strcpy(send_block.p1,"0001");
send_block.p2='9';
strcpy( send_block.p3,"03");
strcpy(send_block.p4, "000");
strcpy(send_block.p5,"12300000000000000000");
strcpy(send_block.p6,"0000012345");
strcpy(send_block.p7,"72300001");
strcpy(send_block.p8,"71");
strcpy(send_block.p9,"888");
strcpy(send_block.p10,"000033300000");
strcpy(send_block.p11,"0000000000");
// strcpy(send_block.p12n, "00"); <- если раскоментировать то по выходу из программы возникает
// ошибка:Run-Time Check Failure #2 -
// Stack around the variable 'send_block' was corrupted.
printf ("%d \n", sizeof(send_block));
}