Small fixes

This commit is contained in:
Michiel Broek
2002-06-15 21:43:35 +00:00
parent d02d6cc1a0
commit ff4c5c35c4
5 changed files with 10 additions and 11 deletions

View File

@@ -1097,15 +1097,16 @@ char *PickTicarea(char *shdr)
clr_index();
working(1, 0, 0);
memset(&Buf, 0, sizeof(Buf));
if (config_read() == -1) {
working(2, 0, 0);
return '\0';
return Buf;
}
records = CountTicarea();
if (records == -1) {
working(2, 0, 0);
return '\0';
return Buf;
}
working(0, 0, 0);
@@ -1146,7 +1147,7 @@ char *PickTicarea(char *shdr)
strcpy(pick, select_pick(records, 10));
if (strncmp(pick, "-", 1) == 0)
return '\0';
return Buf;
if (strncmp(pick, "N", 1) == 0)
if ((o + 10) < records)