1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 11:16:38 +02:00

BUILD : 1.7.14 (1119) BUGS : N/A NOTES : Should have fixed my stupid segfault

git-svn-id: svn://svn.anope.org/anope/trunk@1119 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@843 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
2006-08-06 08:27:44 +00:00
parent ff0ff1d33f
commit faf12e657b
2 changed files with 17 additions and 4 deletions
+11 -3
View File
@@ -154,7 +154,8 @@ void lang_sanitize()
{
int i = 0, j = 0;
int len = 0;
char buf[256];
char tmp[256];
char *newstr = NULL;
for (i = 0; i < NUM_LANGS; i++) {
for (j = 0; j < NUM_STRINGS; j++) {
if (strstr(langtexts[i][j], "%R")) {
@@ -163,9 +164,16 @@ void lang_sanitize()
langtexts[i][j] =
strnrepl(langtexts[i][j], len, "%R", "/");
} else {
langtexts[i][j] = realloc(langtexts[i][j], len + 5);
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 ");
strnrepl(langtexts[i][j], len + 5, "%R", "/msg ");*/
}
}
}
+6 -1
View File
@@ -9,10 +9,15 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="14"
VERSION_EXTRA=""
VERSION_BUILD="1118"
VERSION_BUILD="1119"
# $Log$
#
# BUILD : 1.7.14 (1119)
# BUGS : N/A
# NOTES : Should have fixed my stupid segfault
#
#
# BUILD : 1.7.14 (1118)
# BUGS : N/A
# NOTES : Updated Changes to show %R