Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
14785943
Commit
14785943
authored
Feb 05, 2009
by
hjk
Browse files
Merge branch '0.9.2-rc1' of git@scm.dev.nokia.troll.no:creator/mainline into 0.9.2-rc1
parents
bf7dae57
2f24b396
Changes
1
Show whitespace changes
Inline
Side-by-side
src/tools/qtlibspatcher/qtlibspatchermain.cpp
View file @
14785943
...
@@ -136,7 +136,6 @@ char * allocFileNameCopyAppend(const char * textToCopy,
...
@@ -136,7 +136,6 @@ char * allocFileNameCopyAppend(const char * textToCopy,
Q_ASSERT
(
textToAppend
!=
NULL
);
Q_ASSERT
(
textToAppend
!=
NULL
);
if
(
textToAppend2
==
NULL
)
if
(
textToAppend2
==
NULL
)
textToAppend2
=
""
;
textToAppend2
=
""
;
Q_ASSERT
(
textToAppend2
!=
NULL
);
char
*
const
res
=
new
char
[
bytesToAllocate
];
char
*
const
res
=
new
char
[
bytesToAllocate
];
const
size_t
textToCopyLen
=
strlen
(
textToCopy
);
const
size_t
textToCopyLen
=
strlen
(
textToCopy
);
...
@@ -153,7 +152,7 @@ char * allocFileNameCopyAppend(const char * textToCopy,
...
@@ -153,7 +152,7 @@ char * allocFileNameCopyAppend(const char * textToCopy,
if
(
textToAppendLen
>
0
)
if
(
textToAppendLen
>
0
)
strncpy
(
res
+
textToCopyLen
,
textToAppend
,
bytesToAllocate
-
textToCopyLen
-
1
);
strncpy
(
res
+
textToCopyLen
,
textToAppend
,
bytesToAllocate
-
textToCopyLen
-
1
);
if
(
textToAppend2Len
>
0
)
if
(
textToAppend2Len
>
0
)
strncpy
(
res
+
textToCopyLen
+
textToAppend
2
Len
,
textToAppend2
,
bytesToAllocate
-
textToCopyLen
-
textToAppend
2
Len
-
1
);
strncpy
(
res
+
textToCopyLen
+
textToAppendLen
,
textToAppend2
,
bytesToAllocate
-
textToCopyLen
-
textToAppendLen
-
1
);
res
[
textToCopyLen
+
textToAppendLen
+
textToAppend2Len
]
=
'\0'
;
res
[
textToCopyLen
+
textToAppendLen
+
textToAppend2Len
]
=
'\0'
;
res
[
bytesToAllocate
-
1
]
=
'\0'
;
// Safe is safe
res
[
bytesToAllocate
-
1
]
=
'\0'
;
// Safe is safe
return
res
;
return
res
;
...
@@ -183,6 +182,19 @@ bool patchDebugLibrariesWithQtPath(const char *baseQtPath)
...
@@ -183,6 +182,19 @@ bool patchDebugLibrariesWithQtPath(const char *baseQtPath)
{
"/bin/QtWebKitd4.dll"
,
"/src/3rdparty/webkit/WebCore/"
},
{
"/bin/QtWebKitd4.dll"
,
"/src/3rdparty/webkit/WebCore/"
},
{
"/bin/QtXmld4.dll"
,
"/src/xml/"
},
{
"/bin/QtXmld4.dll"
,
"/src/xml/"
},
{
"/bin/QtXmlPatternsd4.dll"
,
"/src/xmlpatterns/"
},
{
"/bin/QtXmlPatternsd4.dll"
,
"/src/xmlpatterns/"
},
{
"/lib/Qt3Supportd4.dll"
,
"/src/qt3support/"
},
{
"/lib/QtCored4.dll"
,
"/src/corelib/"
},
{
"/lib/QtGuid4.dll"
,
"/src/gui/"
},
{
"/lib/QtHelpd4.dll"
,
"/tools/assistant/lib/"
},
{
"/lib/QtNetworkd4.dll"
,
"/src/network/"
},
{
"/lib/QtOpenGLd4.dll"
,
"/src/opengl/"
},
{
"/lib/QtScriptd4.dll"
,
"/src/script/"
},
{
"/lib/QtSqld4.dll"
,
"/src/sql/"
},
{
"/lib/QtSvgd4.dll"
,
"/src/svg/"
},
{
"/lib/QtTestd4.dll"
,
"/src/testlib/"
},
{
"/lib/QtWebKitd4.dll"
,
"/src/3rdparty/webkit/WebCore/"
},
{
"/lib/QtXmld4.dll"
,
"/src/xml/"
},
{
"/lib/QtXmlPatternsd4.dll"
,
"/src/xmlpatterns/"
},
{
"/plugins/accessible/qtaccessiblecompatwidgetsd4.dll"
,
"/src/plugins/accessible/compat/"
},
{
"/plugins/accessible/qtaccessiblecompatwidgetsd4.dll"
,
"/src/plugins/accessible/compat/"
},
{
"/plugins/accessible/qtaccessiblewidgetsd4.dll"
,
"/src/plugins/accessible/widgets/"
},
{
"/plugins/accessible/qtaccessiblewidgetsd4.dll"
,
"/src/plugins/accessible/widgets/"
},
{
"/plugins/codecs/qcncodecsd4.dll"
,
"/src/plugins/codecs/cn/"
},
{
"/plugins/codecs/qcncodecsd4.dll"
,
"/src/plugins/codecs/cn/"
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment