diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-01-06 18:54:10 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-01-06 18:54:10 +0000 |
commit | 91cfe10d515dec397f134f5689180df3d8bfa87b (patch) | |
tree | fb5f46111480e2b91b766482a050ee34aa747554 /irc/slirc/files/patch-slirc.c | |
parent | Chase the vmware's update to 2.0.3.799. (diff) |
Add {irc,japanese}/slirc, a SLang-based IRC client.
Notes
Notes:
svn path=/head/; revision=36868
Diffstat (limited to 'irc/slirc/files/patch-slirc.c')
-rw-r--r-- | irc/slirc/files/patch-slirc.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/irc/slirc/files/patch-slirc.c b/irc/slirc/files/patch-slirc.c new file mode 100644 index 000000000000..6534fe35650a --- /dev/null +++ b/irc/slirc/files/patch-slirc.c @@ -0,0 +1,30 @@ +--- slirc.c.orig Tue Aug 24 00:15:11 1999 ++++ slirc.c Sun Jan 7 03:17:46 2001 +@@ -242,7 +242,7 @@ + { + char secs[8]; + +- sprintf(Status, "%s -> %s Server[%s] %s", ++ snprintf(Status, sizeof(Status), "%s -> %s Server[%s] %s", + NickName, Target, ServerName, StatMsg); + + SLsmg_gotorc(start, 0); +@@ -339,13 +339,15 @@ + + /* now for scripts search-path */ + if((q = getenv("HOME"))) +- sprintf(SLirc_Load_Path,"%s/.slirc/scripts:",q); ++ snprintf(SLirc_Load_Path, 196, "%s/.slirc/scripts",q); + else +- sprintf(SLirc_Load_Path,"/home/%s/.slirc/scripts:",p); ++ snprintf(SLirc_Load_Path, 196, "/home/%s/.slirc/scripts",p); + + if (2 != SLpath_file_exists(SLirc_Load_Path)) + SLirc_Load_Path[0] = '\0'; +- ++ else ++ strcat(SLirc_Load_Path, ":"); ++ + strcat(SLirc_Load_Path,SCRIPTPATH); /* SCRIPTPATH defined in Makefile */ + } + |