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 can-tables.git
dtv-scan-tables Debian packagingJonathan McCrohan
summaryrefslogtreecommitdiffstats
path: root/dvb-t/se-Gusum (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2014-12-28Imported Upstream version 0+git20141218.b46a22cupstream/0+git20141218.b46a22cJonathan McCrohan1-1/+0
2014-10-15Imported Upstream version 0+git20141009.d26b627upstream/0+git20141009.d26b627Jonathan McCrohan2010-11120/+159271
2014-07-23Imported Upstream version 0+git20140611.14bd6c7upstream/0+git20140611.14bd6c7Jonathan McCrohan7-11/+60
2014-05-13Imported Upstream version 0+git20140512.1246b27upstream/0+git20140512.1246b27Jonathan McCrohan391-301/+3983
2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877