diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-25 11:54:49 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-25 11:54:49 -0700 |
commit | c64c9caa7102fc864cdf121504f86572ce29f933 (patch) | |
tree | 8a58f55e75be86abe7e71ba0711638a8a6b856f3 /cpp/termbox | |
parent | 97f69507cd2a72b889f652dfd19943104ea9c34d (diff) | |
download | mu-c64c9caa7102fc864cdf121504f86572ce29f933.tar.gz |
1200
Diffstat (limited to 'cpp/termbox')
-rw-r--r-- | cpp/termbox/output.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/termbox/output.inl b/cpp/termbox/output.inl index fd5d636f..7c66ce2d 100644 --- a/cpp/termbox/output.inl +++ b/cpp/termbox/output.inl @@ -163,7 +163,7 @@ static char *read_file(const char *file) { static char *terminfo_try_path(const char *path, const char *term) { char tmp[4096]; // snprintf guarantee for older compilers - assert(sizeof(tmp) > sizeof(path)+sizeof("/x/")+sizeof(term)+1; + assert(sizeof(tmp) > sizeof(path)+sizeof("/x/")+sizeof(term)+1); sprintf(tmp, "%s/%c/%s", path, term[0], term); char *data = read_file(tmp); if (data) { @@ -194,7 +194,7 @@ static char *load_terminfo(void) { if (home) { // snprintf guarantee for older compilers assert(sizeof(tmp) > sizeof(home)+sizeof("/.terminfo")+1); - strncpy(tmp, home, sizeof(home)); + strncpy(tmp, home, sizeof(tmp)); strcat(tmp, "/.terminfo"); char *data = terminfo_try_path(tmp, term); if (data) |