diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:18 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:18 +0200 |
commit | 2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2 (patch) | |
tree | afaa05858260763c1d25fa092f3905cf51ffd7b2 /LoadMeter.c | |
parent | 031c3bb95f3d0a74d985286068baa6dd4d29d83f (diff) | |
download | debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.tar.gz debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.tar.bz2 debian_htop-2c8c1a156130aa40be7dcaeb3ce2977a03cf50c2.zip |
Imported Upstream version 0.5.4upstream/0.5.4
Diffstat (limited to 'LoadMeter.c')
-rw-r--r-- | LoadMeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LoadMeter.c b/LoadMeter.c index ce6b098..c2b2af7 100644 --- a/LoadMeter.c +++ b/LoadMeter.c @@ -26,7 +26,7 @@ struct LoadMeter_ { LoadMeter* LoadMeter_new() { LoadMeter* this = malloc(sizeof(LoadMeter)); Meter_init((Meter*)this, String_copy("Load"), String_copy("Load: "), 1); - ((Meter*)this)->attributes[0] = CRT_colors[LOAD]; + ((Meter*)this)->attributes[0] = &(CRT_colors[LOAD]); ((Meter*)this)->setValues = LoadMeter_setValues; ((Object*)this)->display = LoadMeter_display; Meter_setMode((Meter*)this, GRAPH); @@ -58,5 +58,5 @@ void LoadMeter_display(Object* cast, RichString* out) { char buffer[20]; RichString_prune(out); sprintf(buffer, "%.2f ", ((Meter*)this)->values[0]); - RichString_append(out, super->attributes[0], buffer); + RichString_append(out, *(super->attributes[0]), buffer); } |