Fixed my mistakes on puzzles.cgi.c

This commit is contained in:
Aaron McPhall 2012-06-13 13:31:14 -04:00
parent 67c631cdc1
commit abe16d9d51
1 changed files with 3 additions and 3 deletions

View File

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