diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-22 04:28:42 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-22 04:32:40 +0100 |
commit | a51f2248a6fe377a9306f4ed5c7db6ca26d0244c (patch) | |
tree | d9339caa78355e22c61b66551077f70c5fe00f8a /oox | |
parent | libxslt, redland: properly quote rpath $ORIGIN (diff) | |
download | core-a51f2248a6fe377a9306f4ed5c7db6ca26d0244c.tar.gz core-a51f2248a6fe377a9306f4ed5c7db6ca26d0244c.zip |
fix problem with \0 in string literal
Change-Id: If605c111a1d921e404c4aca12d28c558a6659987
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/vml/vmldrawing.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx index 5293e1ec1e31..88282dd7870f 100644 --- a/oox/source/vml/vmldrawing.cxx +++ b/oox/source/vml/vmldrawing.cxx @@ -56,7 +56,8 @@ namespace { OUString lclGetShapeId( sal_Int32 nShapeId ) { // identifier consists of a literal NUL character, a lowercase 's', and the id - return OUString( "\0s" ) + OUString::valueOf( nShapeId ); + sal_Unicode aStr[2] = { '\0', 's' }; + return OUString( aStr, 2 ) + OUString::valueOf( nShapeId ); } /** Returns the numeric VML shape identifier from its textual representation. */ |