gamgi_io_file.c (gamgi-all-0.17.4x) | : | gamgi_io_file.c (gamgi-all-0.17.5x) | ||
---|---|---|---|---|
skipping to change at line 364 | skipping to change at line 364 | |||
gamgi_bool valid; | gamgi_bool valid; | |||
/***************************** | /***************************** | |||
* get hostname and filename * | * get hostname and filename * | |||
*****************************/ | *****************************/ | |||
fullname += strlen("http://"); | fullname += strlen("http://"); | |||
size = strcspn (fullname, "/"); | size = strcspn (fullname, "/"); | |||
strcpy (filename, fullname + size); | strcpy (filename, fullname + size); | |||
strncpy (hostname, fullname, size); | strncpy (hostname, fullname, size); | |||
hostname[size] = '\0'; | hostname[size] = '\0'; | |||
/******************* | /******************* | |||
* open connection * | * open connection * | |||
*******************/ | *******************/ | |||
fd = gamgi_io_socket_name ("http", hostname); | fd = gamgi_io_socket_name ("http", hostname); | |||
if (fd < 0) return gamgi_io_error_open (shortname, window); | if (fd < 0) return gamgi_io_error_open (shortname, window); | |||
skipping to change at line 461 | skipping to change at line 462 | |||
gamgi_bool valid; | gamgi_bool valid; | |||
/***************************** | /***************************** | |||
* get hostname and filename * | * get hostname and filename * | |||
*****************************/ | *****************************/ | |||
fullname += strlen("ftp://"); | fullname += strlen("ftp://"); | |||
size = strcspn (fullname, "/"); | size = strcspn (fullname, "/"); | |||
strcpy (filename, fullname + size); | strcpy (filename, fullname + size); | |||
strncpy (hostname, fullname, size); | strncpy (hostname, fullname, size); | |||
hostname[size] = '\0'; | hostname[size] = '\0'; | |||
/******************** | /******************** | |||
* open main socket * | * open main socket * | |||
********************/ | ********************/ | |||
if ((fd_main = gamgi_io_socket_name ("ftp", hostname)) < 0) | if ((fd_main = gamgi_io_socket_name ("ftp", hostname)) < 0) | |||
return gamgi_io_error_open (shortname, window); | return gamgi_io_error_open (shortname, window); | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |