Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
U
uhttpmock
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uhttpmock
uhttpmock
Commits
a86d4358
Commit
a86d4358
authored
Nov 01, 2014
by
Philip Withnall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: Don’t try and treat a character literal as a string pointer
There is no way that’s going to give a valid address.
parent
f70ec6b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libuhttpmock/uhm-server.c
libuhttpmock/uhm-server.c
+1
-1
No files found.
libuhttpmock/uhm-server.c
View file @
a86d4358
...
...
@@ -1873,7 +1873,7 @@ uhm_server_received_message_chunk (UhmServer *self, const gchar *message_chunk,
* files to be (pretty much) ASCII. File uploads are handled by zero-extending the responses according
* to the traced Content-Length. */
g_byte_array_append
(
priv
->
comparison_message
,
(
const
guint8
*
)
message_chunk
,
message_chunk_length
);
g_byte_array_append
(
priv
->
comparison_message
,
(
const
guint8
*
)
'\n'
,
1
);
g_byte_array_append
(
priv
->
comparison_message
,
(
const
guint8
*
)
"
\n
"
,
1
);
if
(
strcmp
(
message_chunk
,
" "
)
==
0
)
{
/* Received the last chunk of the response, so compare the message from the trace file and that from online. */
...
...
Write
Preview
Markdown
is supported
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