mirror of https://github.com/dirtbags/moth.git
Fixed my mistakes on puzzles.cgi.c
This commit is contained in:
parent
67c631cdc1
commit
abe16d9d51
|
@ -133,10 +133,10 @@ main(int argc, char *argv[])
|
|||
long points;
|
||||
|
||||
read_until_char(map, points_str, sizeof(points_str), ' ');
|
||||
read_until_char(map, cat, sizeof(cat), '\n');
|
||||
points = atol(hash);
|
||||
read_until_char(map, hash, sizeof(hash), '\n');
|
||||
points = atol(points_str);
|
||||
|
||||
printf(" <a href=\"/%s/%ld/\">%ld</a>\n", cat, points, points);
|
||||
printf(" <a href=\"/%s/\">%ld</a>\n", hash, points);
|
||||
|
||||
if (points > maxpoints) break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue