# HG changeset patch # User rtogni # Date 1176149205 0 # Node ID 0f247134050e6962bdb7edad0c20d8815db82c09 # Parent 38cb73f3fe04d508a767945d8ee557763243b70f Size of response is known, no need to calculate it diff -r 38cb73f3fe04 -r 0f247134050e stream/realrtsp/real.c --- a/stream/realrtsp/real.c Mon Apr 09 19:30:32 2007 +0000 +++ b/stream/realrtsp/real.c Mon Apr 09 20:06:45 2007 +0000 @@ -105,7 +105,7 @@ static void real_calc_response_and_checksum (char *response, char *chksum, char *challenge) { - int ch_len, resp_len; + int ch_len; int i; char *ptr; char buf[128]; @@ -145,11 +145,10 @@ calc_response_string (response, buf); /* add tail */ - resp_len = strlen (response); - strcpy (&response[resp_len], "01d0a8e3"); + strcpy (&response[32], "01d0a8e3"); /* calculate checksum */ - for (i=0; i