fugging strlen :DDDD

This commit is contained in:
qorg11 2021-02-09 19:01:49 +01:00
parent 5f840b01da
commit 0658b5f237
No known key found for this signature in database
GPG Key ID: 343FC20A4ACA62B9
2 changed files with 11 additions and 2 deletions

View File

@ -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;
}

View File

@ -1,7 +1,7 @@
/* 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