From 7603d145b28cccd0d38b9d2667c2ba2f36603aa2 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 6 Aug 2006 08:40:50 +0000 Subject: [PATCH] BUILD : 1.7.14 (1120) BUGS : N/A NOTES : ok last time with the lang file thing git-svn-id: svn://svn.anope.org/anope/trunk@1120 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@844 5417fbe8-f217-4b02-8779-1006273d7864 --- src/language.c | 16 +++++----------- version.log | 7 ++++++- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/language.c b/src/language.c index 80893e619..1a3b2cadb 100644 --- a/src/language.c +++ b/src/language.c @@ -160,21 +160,15 @@ void lang_sanitize() for (j = 0; j < NUM_STRINGS; j++) { if (strstr(langtexts[i][j], "%R")) { len = strlen(langtexts[i][j]); + strscpy(tmp, langtexts[i][j], sizeof(tmp)); if (UseStrictPrivMsg) { - langtexts[i][j] = - strnrepl(langtexts[i][j], len, "%R", "/"); + strnrepl(tmp, sizeof(tmp), "%R", "/"); } else { - strscpy(tmp, langtexts[i][j], sizeof(tmp)); strnrepl(tmp, sizeof(tmp), "%R", "/msg "); - newstr = sstrdup(tmp); - free(langtexts[i][j]); - langtexts[i][j] = newstr; -/* strncpy(tmp,langtexts[i][j],len); - free(langtexts[i][j]); - langtexts[i][j] = tmp; - langtexts[i][j] = - strnrepl(langtexts[i][j], len + 5, "%R", "/msg ");*/ } + newstr = sstrdup(tmp); + free(langtexts[i][j]); + langtexts[i][j] = newstr; } } } diff --git a/version.log b/version.log index 904b3035a..a9ec49c0e 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="14" VERSION_EXTRA="" -VERSION_BUILD="1119" +VERSION_BUILD="1120" # $Log$ # +# BUILD : 1.7.14 (1120) +# BUGS : N/A +# NOTES : ok last time with the lang file thing +# +# # BUILD : 1.7.14 (1119) # BUGS : N/A # NOTES : Should have fixed my stupid segfault