diff options
author | brian <brian@FreeBSD.org> | 2001-01-29 00:30:01 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-01-29 00:30:01 +0000 |
commit | 5728ea1f1d0346a88fd4dd9f320ddf922cd13dad (patch) | |
tree | 64b319489e5aadb65d2057b8a6b515766fdc5154 /lib/libalias/alias_proxy.c | |
parent | 6cfc6a9a493c6ebc4ff0162898eecd3e57ccb1ed (diff) | |
download | FreeBSD-src-5728ea1f1d0346a88fd4dd9f320ddf922cd13dad.zip FreeBSD-src-5728ea1f1d0346a88fd4dd9f320ddf922cd13dad.tar.gz |
Ignore leading witespace in the string given to PacketAliasProxyRule().
Diffstat (limited to 'lib/libalias/alias_proxy.c')
-rw-r--r-- | lib/libalias/alias_proxy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalias/alias_proxy.c b/lib/libalias/alias_proxy.c index 08627fa..0033799 100644 --- a/lib/libalias/alias_proxy.c +++ b/lib/libalias/alias_proxy.c @@ -533,6 +533,7 @@ PacketAliasProxyRule(const char *cmd) struct proxy_entry *proxy_entry; /* Copy command line into a buffer */ + cmd += strspn(cmd, " \t"); cmd_len = strlen(cmd); if (cmd_len > (sizeof(buffer) - 1)) return -1; |