fix last fix
authorDan Winship <danw@src.gnome.org>
Tue, 18 Nov 2003 20:01:00 +0000 (20:01 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 18 Nov 2003 20:01:00 +0000 (20:01 +0000)
libsoup/soup-misc.c

index 82980bc..e0938b6 100644 (file)
@@ -203,9 +203,9 @@ soup_base64_encode (const char *text, int len)
         int state = 0, outlen;
         unsigned int save = 0;
         
-        out = g_malloc (inlen * 4 / 3 + 5);
+        out = g_malloc (len * 4 / 3 + 5);
         outlen = soup_base64_encode_close (text, 
-                                          inlen, 
+                                          len, 
                                           FALSE,
                                           out, 
                                           &state,