[xiph-cvs] cvs commit: libshout/src shout.c
Michael Smith
msmith at xiph.org
Wed Oct 2 22:10:19 PDT 2002
msmith 02/10/03 01:10:19
Modified: src shout.c
Log:
Minor cleanup.
Revision Changes Path
1.9 +2 -2 libshout/src/shout.c
Index: shout.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/shout.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- shout.c 16 Aug 2002 15:47:06 -0000 1.8
+++ shout.c 3 Oct 2002 05:10:19 -0000 1.9
@@ -604,8 +604,8 @@
}
if (username && password) {
char *data;
- int len = strlen(username) + strlen(password) + 1;
- char *orig = malloc(len+1);
+ int len = strlen(username) + strlen(password) + 2;
+ char *orig = malloc(len);
strcpy(orig, username);
strcat(orig, ":");
strcat(orig, password);
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list