Skip to content

Commit

Permalink
increase icon array size to match reality.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksherlock committed May 6, 2023
1 parent 20af4a1 commit bbe4c57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gopher.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ unsigned MyID;
MenuRecHndl hMenu = NULL;


static Pointer Icons[4];
static Pointer Icons[5];

#define kMaxWindows 16

Expand Down Expand Up @@ -707,7 +707,7 @@ Pointer IconForType(unsigned type) {
switch(type) {
case kGopherTypeText: return Icons[0]; /* text */
case kGopherTypeIndex: return Icons[1]; /* directory/index */
case '9': return Icons[2]; /* binary */
case kGopherTypeBinary: return Icons[2]; /* binary */
case kGopherTypeSearch: return Icons[4];
case kGopherTypeInfo: /* informational */
case kGopherTypeError: /* error */
Expand Down
1 change: 1 addition & 0 deletions gopher.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ enum {
kGopherTypeInfo = 'i',
kGopherTypeError = '3',
kGopherTypeSearch = '7',
kGopherTypeBinary = '9',
};

enum {
Expand Down

0 comments on commit bbe4c57

Please sign in to comment.