[Pkg-wmaker-commits] [wmbiff] 19/32: fix my sloppy mistake in shell path parsing
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:00:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_3_8
in repository wmbiff.
commit bbbcc9720e20b7957d013166e5df78c1d08c0923
Author: bluehal <bluehal>
Date: Wed Mar 6 18:01:34 2002 +0000
fix my sloppy mistake in shell path parsing
---
wmbiff/ShellClient.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/wmbiff/ShellClient.c b/wmbiff/ShellClient.c
index fce7b7f..b4a38c2 100644
--- a/wmbiff/ShellClient.c
+++ b/wmbiff/ShellClient.c
@@ -61,19 +61,21 @@ int shellCreate(Pop3 pc, const char *str)
pc->open = openMailbox;
pc->checkMail = shellCmdCheck;
reserved1 = str + 6; /* shell:>:: */
- reserved2 = index(reserved1, ':') + 1; /* shell::>: */
+ reserved2 = index(reserved1, ':');
if (reserved2 == NULL) {
DM(pc, DEBUG_ERROR,
"shell method, unable to parse '%s', expecting ':'", str);
return 0;
}
- commandline = index(reserved2, ':') + 1; /* shell:::> */
+ reserved2++; /* shell::>: */
+ commandline = index(reserved2, ':');
if (commandline == NULL) {
DM(pc, DEBUG_ERROR,
"shell method, unable to parse '%s', expecting another ':'",
str);
return 0;
}
+ commandline++; /* shell:::> */
strcpy(pc->path, commandline);
DM(pc, DEBUG_INFO, "shell: path= '%s'\n", commandline);
return 0;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list