aboutsummaryrefslogtreecommitdiffstats
path: root/src/nyancat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nyancat.c')
-rw-r--r--src/nyancat.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nyancat.c b/src/nyancat.c
index 3cbca75..68d43f2 100644
--- a/src/nyancat.c
+++ b/src/nyancat.c
@@ -9,6 +9,11 @@
* http://github.com/Peetz0r/nyancat
* http://peter.haas-en-berg.nl
*
+ * Build tools unifed by: Aaron Peschel
+ * https://github.com/apeschel
+ *
+ * For a complete listing of contributers, please see the git commit history.
+ *
* This is a simple telnet server / standalone application which renders the
* classic Nyan Cat (or "poptart cat") to your terminal.
*
@@ -364,7 +369,8 @@ int main(int argc, char ** argv) {
/* We are running standalone, retrieve the
* terminal type from the environment. */
char * nterm = getenv("TERM");
- strcpy(term, nterm);
+ if (nterm)
+ strcpy(term, nterm);
/* Also get the number of columns */
struct winsize w;