buffer size changed
I am doing a simple communication between sockets and here is my C++ code
    
    while(1)
    {
	    string buffer = "23,45\n";
	    const char* foo = buffer.c_str();
	    cout << "size of buffer is " << sizeof(buffer)<<endl;
        send (s, foo, sizeof(buffer), 0);
	}

weird thing is the fist iteration, the size of the buffer is 5 as expected, but since the second iteration and so on, the size dramatically jumped to 32. any idea why? Thank you very much. By the way, the added size comes from leading while spaces.
buffer size changed
===

I am doing a simple communication between sockets and here is my C++ code
    
    while(1)
    {
	    string buffer = "23,45\n";
	    const char* foo = buffer.c_str();
	    cout << "size of buffer is " << sizeof(buffer)<<endl;
        send (s, foo, sizeof(buffer), 0);
	}

weird thing is the fist iteration, the size of the buffer is 5 as expected, but since the second iteration and so on, the size dramatically jumped to 32. any idea why? Thank you very much. By the way, the added size comes from leading while spaces.