From 45856e02edf4d40dff7e8007cc31378dcccf8211 Mon Sep 17 00:00:00 2001 From: Alexander Frolov Date: Tue, 21 Feb 2012 15:04:05 +0400 Subject: Fixed SegFault if TERM variable is not set --- src/nyancat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nyancat.c b/src/nyancat.c index 3cbca75..46b201e 100644 --- a/src/nyancat.c +++ b/src/nyancat.c @@ -364,7 +364,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; -- cgit v1.2.3 From 004e132aceb3f00597e9a753edfac09b0542c750 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Wed, 22 Feb 2012 20:53:39 -0600 Subject: Amended license header. --- src/nyancat.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/nyancat.c b/src/nyancat.c index 46b201e..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. * -- cgit v1.2.3