diff --git a/.gitignore b/.gitignore index bd98235..7a90ae0 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ Mkfile.old dkms.conf /build +.DS_Store diff --git a/c302.c b/c302.c index 645d619..9a53ac9 100644 --- a/c302.c +++ b/c302.c @@ -21,7 +21,7 @@ int main(int argc, char **argv) { http_error(HTTP500, "Argument Count Error."); return 1; } - uint32_t i = time(NULL) % (sizeof(urls)/sizeof(char*)); + int i = time(NULL) % (sizeof(urls)/sizeof(char*)); uint32_t len = sizeof(HTTP302HEAD)-1 + urlsl[i] + 4 + sizeof(CONTENT)-1; const struct iovec iov[4] = { {(void *)&len, sizeof(uint32_t)}, diff --git a/c302.h b/c302.h index 24215d8..7cb136a 100644 --- a/c302.h +++ b/c302.h @@ -25,9 +25,11 @@ static const char* urls[] = { "https://bocchi.rocks/assets/img/page/character/hitori/main.png", // 後藤ひとり "https://bocchi.rocks/assets/img/page/character/nijika/main.png", // 伊地知虹夏 "https://bocchi.rocks/assets/img/page/character/ryo/main.png", // 山田リョウ - "https://bocchi.rocks/assets/img/page/character/ikuyo/main.png" // 喜多郁代 + "https://bocchi.rocks/assets/img/page/character/ikuyo/main.png", // 喜多郁代 + "https://orthrossoft.jp/assets/images/character/whole_body-yui.png", // 片桐ユイ + "https://orthrossoft.jp/assets/images/character/whole_body-yaeka.png" // 片桐ヤエカ }; -static const uint16_t urlsl[] = {62, 62, 59, 61}; +static const uint16_t urlsl[] = {62, 62, 59, 61, 65, 67}; #endif diff --git a/imgs/hitori.png b/imgs/hitori.png new file mode 100644 index 0000000..abc6541 Binary files /dev/null and b/imgs/hitori.png differ diff --git a/imgs/ikuyo.png b/imgs/ikuyo.png new file mode 100644 index 0000000..d35202c Binary files /dev/null and b/imgs/ikuyo.png differ diff --git a/imgs/nijika.png b/imgs/nijika.png new file mode 100644 index 0000000..83be54e Binary files /dev/null and b/imgs/nijika.png differ diff --git a/imgs/ryo.png b/imgs/ryo.png new file mode 100644 index 0000000..7bb698e Binary files /dev/null and b/imgs/ryo.png differ diff --git a/imgs/yaeka.png b/imgs/yaeka.png new file mode 100644 index 0000000..013415f Binary files /dev/null and b/imgs/yaeka.png differ diff --git a/imgs/yui.png b/imgs/yui.png new file mode 100644 index 0000000..54f116f Binary files /dev/null and b/imgs/yui.png differ