aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sympathy.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sympathy.c')
-rw-r--r--apps/sympathy.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/sympathy.c b/apps/sympathy.c
index c14b8ec..b19cb94 100644
--- a/apps/sympathy.c
+++ b/apps/sympathy.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.43 2008/03/12 01:26:56 james
+ * *** empty log message ***
+ *
* Revision 1.42 2008/03/11 15:02:52 james
* *** empty log message ***
*
@@ -201,7 +204,7 @@ sigchld (int dummy)
wait3 (&status, WNOHANG, NULL);
}
-/* Dispell zombies, from for example log compression */
+/* Dispell zombies, from, for example, log compression */
void
garlic (void)
{
@@ -717,7 +720,12 @@ main (int argc, char *argv[])
}
if (oflags['p']) {
- ctx->t = ptty_open (NULL, NULL, &size);
+ if (optind <argc) {
+ ctx->t = ptty_open (argv[optind], &argv[optind], &size);
+ } else {
+ ctx->t = ptty_open (NULL, NULL, &size);
+ }
+
if (!ctx->t)
fatal_moan ("unable to open a ptty");
} else {