oops?
authorNorth Antara <north@ntbox.com>
Sat, 15 Jul 2006 20:02:20 +0000 (20:02 +0000)
committerNorth Antara <north@ntbox.com>
Sat, 15 Jul 2006 20:02:20 +0000 (20:02 +0000)
This should've been 5 chars..

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

manager.c

index d2c25ec..eea6b64 100644 (file)
--- a/manager.c
+++ b/manager.c
@@ -233,8 +233,8 @@ static void xml_copy_escape(char **dst, size_t *maxlen, const char *src, int low
                        break;
                case '&':
                        strcpy(*dst, "&amp;");
-                       (*dst) += 4;
-                       *maxlen -= 4;
+                       (*dst) += 5;
+                       *maxlen -= 5;
                        break;          
                default:
                        *(*dst)++ = lower ? tolower(*src) : *src;