I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 0658b5f2 authored by xalloc xzal's avatar xalloc xzal
Browse files

fugging strlen :DDDD

parent 5f840b01
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ main(int argc, char **argv)
long_options,&option_index)) != -1) {
switch(c) {
case 's':
strncpy(server,optarg,256);
server = optarg;
break;
case 'h':
print_help();
......@@ -165,3 +165,12 @@ store_link(const char *path, const char *buf)
fputc('\n',fp);
return 0;
}
void
print_help()
{
printf("--server <server>: specifies the lainsafe server\n%s\n%s",
"--tor: uses tor",
"--help: print this message\n");
return;
}
/* clainsafecli options */
/* Default server you'll upload files to */
char server[256] = "https://lainsafe.kalli.st";
char *server = "https://lainsafe.kalli.st";
/* proxy urls, socks and http. in that order, by default they're
* configured to be used for tor and i2p, but if you have another
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment