summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-05 16:03:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-05 16:07:43 +0100
commit55f5b676d49f5660c6241b03f1fb5a2bf556a969 (patch)
tree3405a07a379e63cd195dc4d5b153498434e795b9 /framework
parent51bc62d4df7311a27cebfc1afd160908b431cba7 (diff)
extra trailing NUL char in string
This began life as ::rtl::OUString::createFromAscii which stops at the first NULL terminator. So drop the \0 to get the same results Change-Id: I7d9abbff2a6e6131ef5e7208e05cfd13178418cb (cherry picked from commit 0665c3e52b0b0053c3d622d3fa975d4234801bdd) Signed-off-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/jobs/jobdata.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/jobs/jobdata.cxx b/framework/source/jobs/jobdata.cxx
index c1cbcf8d6112..a6cf7c45c746 100644
--- a/framework/source/jobs/jobdata.cxx
+++ b/framework/source/jobs/jobdata.cxx
@@ -583,7 +583,7 @@ sal_Bool isEnabled( const ::rtl::OUString& sAdminTime ,
we have to encode all '?' signs. Otherwhise e.g. "??-" will be translated
to "~" ...
*/
- static ::rtl::OUString PATTERN_ISO8601("\?\?\?\?-\?\?-\?\?*\0");
+ static ::rtl::OUString PATTERN_ISO8601("\?\?\?\?-\?\?-\?\?*");
WildCard aISOPattern(PATTERN_ISO8601);
sal_Bool bValidAdmin = aISOPattern.Matches(sAdminTime);