gmyth/src/gmyth_http.c
branchtrunk
changeset 351 c331f4639111
parent 349 7005e696052c
child 352 d803a518d7ca
     1.1 --- a/gmyth/src/gmyth_http.c	Sat Feb 10 20:01:54 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_http.c	Sat Feb 10 22:12:54 2007 +0000
     1.3 @@ -355,9 +355,9 @@
     1.4  {
     1.5      LIBXML_TEST_VERSION
     1.6  
     1.7 -    size_t size = strlen(backend_info->hostname) + strlen(command->str) + 13;
     1.8 +    size_t size = strlen(backend_info->hostname) + strlen(command->str) + 14;
     1.9      gchar *URL = (gchar *)g_malloc(sizeof(gchar)*size);
    1.10 -    g_snprintf(URL, size+1, "http://%s:6544/%s", backend_info->hostname, command->str);
    1.11 +    g_snprintf(URL, size, "http://%s:6544/%s", backend_info->hostname, command->str);
    1.12  
    1.13      CURL *curl_handle;
    1.14