]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
A further correction: cast the sizeof to an int.
authorSteve Murphy <murf@digium.com>
Wed, 28 Jan 2009 22:52:06 +0000 (22:52 +0000)
committerSteve Murphy <murf@digium.com>
Wed, 28 Jan 2009 22:52:06 +0000 (22:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@172132 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index a74de7c394ca6fb17ce34b2137a4ffb15b4fb5ca..7fab5ba0bd3b47bd1bc0bc0c5e1b746af8180bad 100644 (file)
@@ -5493,7 +5493,7 @@ static int misdn_facility_exec(struct ast_channel *chan, void *data)
                }
 
                if (strlen(args.arg[0]) >= sizeof(ch->bc->fac_out.u.CDeflection.DeflectedToNumber)) {
-                       ast_log(LOG_WARNING, "Facility: Number argument too long (up to %d digits are allowed). Ignoring.\n", sizeof(ch->bc->fac_out.u.CDeflection.DeflectedToNumber));
+                       ast_log(LOG_WARNING, "Facility: Number argument too long (up to %d digits are allowed). Ignoring.\n", (int)sizeof(ch->bc->fac_out.u.CDeflection.DeflectedToNumber));
                        return 0;
                }
                ch->bc->fac_out.Function = Fac_CD;