From: msweet Date: Wed, 27 Jan 2016 16:05:05 +0000 (+0000) Subject: Fix logic error (need to move only the remaining characters in the string). X-Git-Tag: v2.2b1~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85df117dd823c1ce1c61ed0bcaa93614bf887955;p=thirdparty%2Fcups.git Fix logic error (need to move only the remaining characters in the string). git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13063 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/encode.c b/cups/encode.c index c6efb7d2c4..ccefe8a0dc 100644 --- a/cups/encode.c +++ b/cups/encode.c @@ -632,7 +632,7 @@ cupsEncodeOptions2( * Skip quoted character... */ - memmove(sep, sep + 1, strlen(val)); + memmove(sep, sep + 1, strlen(sep)); sep ++; } }