X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=doc%2Fhtml%2Fdownload.c;h=cfcf6367e8a8d200e1e0957c188b482813d18cb0;hp=33845a78dbbce19b413d29699d2a0d4c900734f5;hb=8afd373e4f35d363c763301af804b2628b46437d;hpb=3e75750ad6893e1af78474cc085cff64bb7c98c8 diff --git a/doc/html/download.c b/doc/html/download.c index 33845a7..cfcf636 100644 --- a/doc/html/download.c +++ b/doc/html/download.c @@ -28,7 +28,7 @@ char value(char c) { int security_decode(unsigned char *dest, const unsigned char *src, int srclen) { unsigned char *p; - if(!*src) + if(!*src) return 0; *dest = 0; @@ -42,11 +42,11 @@ int security_decode(unsigned char *dest, const unsigned char *src, int srclen) { if(!isbase64(src[1])) { p -= 2; break; - } + } else if(!isbase64(src[2])) { p -= 2; break; - } + } else if(!isbase64(src[3])) { p--; break; @@ -67,7 +67,7 @@ int security_decode(unsigned char *dest, const unsigned char *src, int srclen) { * If more platforms are supported add the entries between the start * tag here, and the end tag below. Nothing else needs to be done * (the table needs to match the HTML too) - */ + */ #define ARCHLINUX_32_REF "%sgmqcc-%c.%c.%c-1-i686.pkg.tar.xz%s" #define ARCHLINUX_64_REF "%sgmqcc-%c.%c.%c-1-x86_64.pkg.tar.xz%s" #define DEBIAN_32_REF "%sgmqcc-%c.%c.%c-i686.deb%s" @@ -155,7 +155,7 @@ void escape(url_t *str) { char hexstr[3]; unsigned int i=0; unsigned long l=0; - + p = str->data; for(i=0; i < str->len; i++) { if((p - str->data) >= str->len) @@ -235,7 +235,7 @@ void genhtml() { /* * Builds a list of download links with the right version and handles the * rest of the magic. - */ + */ void build(const char *directory) { /* Figure out version number */ char find[3];