]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3202
authorJeff Lenk <jeff@jefflenk.com>
Tue, 29 Mar 2011 17:08:07 +0000 (12:08 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Tue, 29 Mar 2011 17:08:07 +0000 (12:08 -0500)
13 files changed:
src/mod/say/mod_say_de/mod_say_de.c
src/mod/say/mod_say_en/mod_say_en.c
src/mod/say/mod_say_es/mod_say_es.c
src/mod/say/mod_say_fr/mod_say_fr.c
src/mod/say/mod_say_hr/mod_say_hr.c
src/mod/say/mod_say_hu/mod_say_hu.c
src/mod/say/mod_say_it/mod_say_it.c
src/mod/say/mod_say_ja/mod_say_ja.c
src/mod/say/mod_say_nl/mod_say_nl.c
src/mod/say/mod_say_pt/mod_say_pt.c
src/mod/say/mod_say_ru/mod_say_ru.c
src/mod/say/mod_say_th/mod_say_th.c
src/mod/say/mod_say_zh/mod_say_zh.c

index ea0b380e4ee530232a8c531249e48237a2bd6c2d..7b2c34929998165c97f8a9832b0e8f59b8a1b894 100644 (file)
@@ -130,7 +130,7 @@ static switch_status_t de_say_general_count(switch_core_session_t *session, char
        char sbuf[13] = "";
        switch_status_t status;
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index 03bea87bc172357992c4c01318e5c471c118d3e8..202f0d6ff28687602048d32a2ee06570d00c9936 100644 (file)
@@ -126,7 +126,7 @@ static switch_status_t en_say_general_count(switch_core_session_t *session, char
        switch_status_t status;
 
        if (say_args->method == SSM_ITERATED) {
-               if ((tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)))) {
+               if ((tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1))) {
                        char *p;
                        for (p = tosay; p && *p; p++) {
                                say_file("digits/%c.wav", *p);
@@ -138,7 +138,7 @@ static switch_status_t en_say_general_count(switch_core_session_t *session, char
                return SWITCH_STATUS_SUCCESS;
        }
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index ff0ee944c2bba11f418c8806c3292131da8dbb87..7f806f4c7c1ae52eb0475dd34a6753b23959e5f7 100644 (file)
@@ -158,7 +158,7 @@ static switch_status_t es_say_general_count(switch_core_session_t *session, char
        char sbuf[13] = "";
        switch_status_t status;
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index cf3ebabcdb3ad2c7cc48885652f1d3cdc8b751fb..eb6f6d526c758df22d8009ab06504b2840c1f8b5 100644 (file)
@@ -147,7 +147,7 @@ static switch_status_t fr_say_general_count(switch_core_session_t *session, char
        char sbuf[13] = "";
        switch_status_t status;
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index af2aa972c557ef0c658a6e6c8451e58e7a3da323..df124a8c74c10c131e9914f7ec6708d9f6f3b899 100644 (file)
@@ -232,7 +232,7 @@ static switch_status_t hr_say_count(switch_core_session_t *session, char* gen,
 
        strcpy(tgen, gen);
        
-       if (!(tosay = strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index 6a3dfdc65e979cd32b6ec22e9d7e025bce8d0655..caa26f70cfed2bf66d713e6e9c6ba24dcec0fa73 100644 (file)
@@ -126,7 +126,7 @@ static switch_status_t hu_say_general_count(switch_core_session_t *session, char
        int number;
        switch_status_t status;
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index 7a3c7bc99c5a0cde9430fa7492e3f10706abb83f..e131dde32722afba594bd5e125c9a3a726f0ef3b 100644 (file)
@@ -134,7 +134,7 @@ static switch_status_t it_say_general_count(switch_core_session_t *session, char
        char sbuf[13] = "";
        switch_status_t status;
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index 407d2d4a91ae1e6bb73250502ad458a6e31a8403..8874748462bddbefdd7f9bdd84245853bbf024ca 100644 (file)
@@ -88,7 +88,7 @@ static switch_status_t ja_say_general_count(switch_core_session_t *session, char
        char digits[11];
        int i;
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index 4f4ec7edd0cee7815330333ed9487b85a6f21664..3a9c89fb94786064594f55097cbbe11aca4590a8 100644 (file)
@@ -121,7 +121,7 @@ static switch_status_t nl_say_general_count(switch_core_session_t *session, char
        char sbuf[13] = "";
        switch_status_t status;
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index 747a0c89844c570b9c85f771a3a109e0f84b4a55..4dd6fba81fdb44e40e427740305425557da56c00 100644 (file)
@@ -154,7 +154,7 @@ static switch_status_t pt_say_general_count(switch_core_session_t *session, char
        switch_status_t status;\r
 \r
        if (say_args->method == SSM_ITERATED) {\r
-               if ((tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)))) {\r
+               if ((tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1))) {\r
                        char *p;\r
                        for (p = tosay; p && *p; p++) {\r
                                say_file("digits/%c.wav", *p);\r
@@ -166,7 +166,7 @@ static switch_status_t pt_say_general_count(switch_core_session_t *session, char
                return SWITCH_STATUS_SUCCESS;\r
        }\r
 \r
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {\r
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {\r
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");\r
                return SWITCH_STATUS_GENERR;\r
        }\r
index 21e3017ef98fca13024cff2ae1edc4d78f4c87f6..559075785fea5e0c2d548592e30dcb2369ee7828 100644 (file)
@@ -164,7 +164,7 @@ static switch_status_t ru_say_count(switch_core_session_t *session, char *tosay,
 
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "ru_say_count %s!\n", tosay);
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index 59b077a0fe965175763d2ed09cb9690fb10bcbdc..1b833631655eb3eb83eabf23d4f3d8a87a501fce 100644 (file)
@@ -94,7 +94,7 @@ static switch_status_t th_say_general_count(switch_core_session_t *session,   char
        char digits[11];
        int i;
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }
index e448ea6b63373880cfe5b0e076f399732498400a..24f8aa927af21fbb34298e59b683a866791b1410 100644 (file)
@@ -93,7 +93,7 @@ static switch_status_t zh_say_general_count(switch_core_session_t *session, char
        char digits[11];
        int i;
 
-       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
+       if (!(tosay = switch_strip_commas(tosay, sbuf, sizeof(sbuf)-1)) || strlen(tosay) > 9) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
                return SWITCH_STATUS_GENERR;
        }