aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-19 21:48:38 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-19 21:48:38 +0000
commit71016036a4968abf7b055e779d390e8c8beab738 (patch)
tree7e1f7be9d5b5d75922e3991f6182eee5527b3a4c /socket.c
parent1fd41e10f792129a16f555e09aea71e61c0fd102 (diff)
downloadfetchmail-71016036a4968abf7b055e779d390e8c8beab738.tar.gz
fetchmail-71016036a4968abf7b055e779d390e8c8beab738.tar.bz2
fetchmail-71016036a4968abf7b055e779d390e8c8beab738.zip
Fix a fatal error in Dave Zarzycki's plugin parser.
svn path=/trunk/; revision=3125
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index 64a1d711..7d1a78e2 100644
--- a/socket.c
+++ b/socket.c
@@ -102,12 +102,12 @@ char *const *parse_plugin(const char *plugin, const char *host, const char *serv
while (plugin_copy_offset < plugin_copy_len)
{ if ((plugin[plugin_offset] == '%') && (plugin[plugin_offset + 1] == 'h'))
- { strcat(plugin_copy + plugin_copy_offset, host);
+ { strcpy(plugin_copy + plugin_copy_offset, host);
plugin_offset += 2;
plugin_copy_offset += host_len;
}
else if ((plugin[plugin_offset] == '%') && (plugin[plugin_offset + 1] == 'p'))
- { strcat(plugin_copy + plugin_copy_offset, service);
+ { strcpy(plugin_copy + plugin_copy_offset, service);
plugin_offset += 2;
plugin_copy_offset += service_len;
}