diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-07-24 12:02:12 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2008-07-24 12:02:12 +0000 |
commit | c0c4e2446ffca88aed27726fd28f99470fb85d40 (patch) | |
tree | ebfc2270976db61f66f960caae96166bb0b50bbd /catsprintf.c | |
parent | 4289505932068a0c071c7c9fb4655678394cb469 (diff) | |
download | python-dmidecode-c0c4e2446ffca88aed27726fd28f99470fb85d40.tar.gz python-dmidecode-c0c4e2446ffca88aed27726fd28f99470fb85d40.tar.xz python-dmidecode-c0c4e2446ffca88aed27726fd28f99470fb85d40.zip |
Some cleaning, crash in interactive mode on dmidecode.bios() still not fixed.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@13 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'catsprintf.c')
-rw-r--r-- | catsprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/catsprintf.c b/catsprintf.c index f27ce0f..2b0abb3 100644 --- a/catsprintf.c +++ b/catsprintf.c @@ -63,8 +63,8 @@ dmi_minor* dmiAppendObject(long code, char const *key, const char *format, ...) dmi_minor *o = (dmi_minor *)malloc(sizeof(dmi_minor)); o->id = code; - o->major = &dmiCodesMajor[map_maj[code>>8]]; - o->key = key; + o->major = (dmi_codes_major*)&dmiCodesMajor[map_maj[code>>8]]; + o->key = (char *)key; vsprintf(o->value, format, arg); o->next = last; |