print server error # right.

SVN revision: 59768
This commit is contained in:
Carsten Haitzler 2011-05-28 07:40:15 +00:00
parent e06af83603
commit 7418b3cc92
1 changed files with 8 additions and 2 deletions

View File

@ -297,9 +297,15 @@ _upload_data_cb(void *data __UNUSED__, int ev_type __UNUSED__, void *event)
if ((o_label) && (ev->size < 1024))
{
char *txt = alloca(ev->size + 1);
memcpy(txt, ev->data, ev->size);
txt[ev->size] = 0;
/*
printf("GOT %i bytes: '%s'\n", ev->size, txt);
int i;
for (i = 0; i < ev->size; i++) printf("%02x.", ev->data[i]);
printf("\n");
*/
if (!url_ret) url_ret = strdup(txt);
else
{
@ -345,7 +351,7 @@ _upload_complete_cb(void *data __UNUSED__, int ev_type __UNUSED__, void *event)
{
e_util_dialog_show
(_("Error - Upload Failed"),
_("Upload failed with status code:\n"
_("Upload failed with status code:<br>"
"%i"),
ev->status);
_share_done();