Merged revisions 102214 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 4 Feb 2008 05:32:00 +0000 (05:32 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 4 Feb 2008 05:32:00 +0000 (05:32 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r102214 | tilghman | 2008-02-03 23:10:02 -0600 (Sun, 03 Feb 2008) | 6 lines

Missing braces.
(closes issue #11912)
 Reported by: dimas
 Patches:
       sprintf.patch uploaded by dimas (license 88)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@102238 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_strings.c

index 54730e1..aaa4b0a 100644 (file)
@@ -482,9 +482,10 @@ static int acf_sprintf(struct ast_channel *chan, const char *cmd, char *data, ch
                                        i++;
                                state = SPRINTF_CONVERSION;
                                break;
-                       } else if (strchr("Lqjzt", arg.format[i]))
+                       } else if (strchr("Lqjzt", arg.format[i])) {
                                state = SPRINTF_CONVERSION;
                                break;
+                       }
                        state = SPRINTF_CONVERSION;
                case SPRINTF_CONVERSION:
                        if (strchr("diouxXc", arg.format[i])) {