diff options
| author | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-03-07 21:21:44 +0000 | 
|---|---|---|
| committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-03-07 21:21:44 +0000 | 
| commit | 34c578b4644d2c55d593cc76285437f1e155629f (patch) | |
| tree | 9ae7ff5753cd0628c1d103c7d838a44154e700e3 | |
| parent | c2f9afaf258d4194ed0c20644b011897abe4cb7b (diff) | |
| parent | 004e132aceb3f00597e9a753edfac09b0542c750 (diff) | |
| download | nyancat-34c578b4644d2c55d593cc76285437f1e155629f.tar.gz | |
Merge branch 'master' of git://github.com/klange/nyancat
| -rw-r--r-- | src/nyancat.c | 8 | 
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; | 
