Skip to content

Commit

Permalink
I forgot that C consts don't work like that.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieantonio committed Dec 1, 2017
1 parent c89c5b1 commit fbb2911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imgcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ static struct {
};

/* Global temporary filename for dumping stdin into. */
static const ssize_t MAX_TEMPFILE_NAME = 128;
static char tempfile_name[MAX_TEMPFILE_NAME + 1] = "";
#define MAX_TEMPFILE_NAME 128
static char tempfile_name[MAX_TEMPFILE_NAME + 1];

/* Long options */
static struct option long_options[] = {
Expand Down

0 comments on commit fbb2911

Please sign in to comment.