mirror of https://github.com/dirtbags/moth.git
Fixed my mistakes on puzzles.cgi.c
This commit is contained in:
parent
941dd5fd9b
commit
f73ab8d01d
|
@ -133,10 +133,10 @@ main(int argc, char *argv[])
|
||||||
long points;
|
long points;
|
||||||
|
|
||||||
read_until_char(map, points_str, sizeof(points_str), ' ');
|
read_until_char(map, points_str, sizeof(points_str), ' ');
|
||||||
read_until_char(map, cat, sizeof(cat), '\n');
|
read_until_char(map, hash, sizeof(hash), '\n');
|
||||||
points = atol(hash);
|
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;
|
if (points > maxpoints) break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue