summaryrefslogtreecommitdiffstats
path: root/src/tss.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 18:59:28 +0200
committerGravatar Nikias Bassen2012-07-17 18:59:28 +0200
commitb32de647e7942147a64b55df1b4e9fc331119ef4 (patch)
tree772971564c7ccb653e05ccf239f542a94d99197c /src/tss.c
parent75af79094956025f04fc55b0470bb4f4d875a64a (diff)
downloadidevicerestore-b32de647e7942147a64b55df1b4e9fc331119ef4.tar.gz
idevicerestore-b32de647e7942147a64b55df1b4e9fc331119ef4.tar.bz2
tss: Do not output "MESSAGE=" prefix of TSS server error messages
Diffstat (limited to 'src/tss.c')
-rw-r--r--src/tss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tss.c b/src/tss.c
index bf6ba51..d7c850d 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -387,7 +387,7 @@ plist_t tss_send_request(plist_t tss_request) {
}
if (status_code != 0) {
- char* message = strstr(response->content, "MESSAGE=");
+ char* message = strstr(response->content, "MESSAGE=") + strlen("MESSAGE=");
error("ERROR: TSS request failed (status=%d, message=%s)\n", status_code, message);
free(response->content);
free(response);