[pan2] patch from andrew nile
- From: Heinrich Müller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2] patch from andrew nile
- Date: Mon, 22 Sep 2014 05:41:54 +0000 (UTC)
commit 81929d0dbd9b1d0003b8b4b279b828bc523c0c5d
Author: Heinrich Müller <heinrich mueller82 gmail com>
Date: Mon Sep 22 07:41:32 2014 +0200
patch from andrew nile
pan/data/encode-cache.cc | 5 ++++-
pan/tasks/task-upload.h | 2 +-
uulib/uuencode.c | 3 ++-
3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/pan/data/encode-cache.cc b/pan/data/encode-cache.cc
index 7de7673..9d0c4c1 100644
--- a/pan/data/encode-cache.cc
+++ b/pan/data/encode-cache.cc
@@ -140,7 +140,10 @@ EncodeCache :: add (const Quark& message_id)
void EncodeCache :: finalize (std::string message_id)
{
struct stat sb;
- stat (message_id.c_str(), &sb);
+ char out_path[4096];
+
+ get_filename(out_path, Quark(message_id));
+ stat (out_path, &sb);
_mid_to_info[message_id]._size = sb.st_size;
fire_added (message_id);
_current_bytes += sb.st_size;
diff --git a/pan/tasks/task-upload.h b/pan/tasks/task-upload.h
index 4096c06..c128385 100644
--- a/pan/tasks/task-upload.h
+++ b/pan/tasks/task-upload.h
@@ -164,7 +164,7 @@ namespace pan
void set_encoder_done (bool setme) { _encoder_has_run = setme; }
needed_t& needed() { return _needed; }
void build_needed_tasks();
-
+ void wakeup() { _state.set_working(); update_work(); }
};
}
diff --git a/uulib/uuencode.c b/uulib/uuencode.c
index 53c753c..b9a390e 100644
--- a/uulib/uuencode.c
+++ b/uulib/uuencode.c
@@ -1294,7 +1294,8 @@ UUEncodePartial (FILE *outfile, FILE *infile,
{
mimemap *miter=mimetable;
static FILE *theifile;
- int themode, numparts;
+ static int numparts;
+ int themode;
struct stat finfo;
long thesize;
char *ptr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]