summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-12-28 08:14:03 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-12-28 08:14:03 +0100
commitd1f3b2d095a5c4da69903c37210c96b38c5de171 (patch)
treedf403d2336b05c662923c352dda29b773264e877
parent2e333292e9dd4bb179f8ef25839d69fec9442600 (diff)
Fix a warning when running the cygwin version under Wine
-rw-r--r--src/intrfn.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/intrfn.c b/src/intrfn.c
index fff5e2d..f0b6756 100644
--- a/src/intrfn.c
+++ b/src/intrfn.c
@@ -970,15 +970,7 @@ static char *filename_to_directory(const char *filename)
res=buf;
}
#endif
-#ifdef __CYGWIN__
- {
- char beautifull_dst_directory[2048];
- cygwin_conv_to_win32_path(res, beautifull_dst_directory);
- return strdup(beautifull_dst_directory);
- }
-#else
return strdup(res);
-#endif
}
int start_ncurses(const char *prog_name, const char *real_prog_name)
@@ -1013,7 +1005,7 @@ int start_ncurses(const char *prog_name, const char *real_prog_name)
#endif
screenp=newterm(NULL,stdout,stdin);
#ifdef HAVE_SETENV
- if(screenp==NULL && terminfo!=NULL)
+ if(screenp==NULL && terminfo!=NULL && terminfo[0]!='\0')
{
setenv("TERMINFO", terminfo, 1);
screenp=newterm(NULL,stdout,stdin);