about summary refs log tree commit diff stats
path: root/cpp/termbox/termbox.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-25 08:07:45 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-25 08:09:17 -0700
commitb4bbd479174fd06c13295f33845f39427c0776b3 (patch)
treee7c7d47d8adde6ad8c442d07e977f90a7358e860 /cpp/termbox/termbox.c
parentafbe301d4fb3ec3a3c7fa92fe1b360c062dbaa25 (diff)
downloadmu-b4bbd479174fd06c13295f33845f39427c0776b3.tar.gz
1198 - now compiles on mac os; thanks sam putman
Just toss out that snprintf prototype I'd hackily copied in earlier and
avoid using snprintf entirely.

Hopefully I got the assertions right :/

Looks like the previous nul-padding was redundant. If you had snprintf
it would take care of it.
Diffstat (limited to 'cpp/termbox/termbox.c')
-rw-r--r--cpp/termbox/termbox.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cpp/termbox/termbox.c b/cpp/termbox/termbox.c
index 6d1b7b7d..13ef1359 100644
--- a/cpp/termbox/termbox.c
+++ b/cpp/termbox/termbox.c
@@ -5,7 +5,6 @@
 #include <fcntl.h>
 #include <signal.h>
 #include <stdio.h>
-int snprintf(char *str, size_t size, const char *format, ...);  // until we enable gnu99
 #include <stdbool.h>
 #include <sys/ioctl.h>
 #include <sys/time.h>