Revision e500ac9fa6fb51ab80cfca8b9386006eed859fb2
nosnilmot at pidgin.im
nosnilmot at pidgin.im
Sat Mar 17 13:58:26 EDT 2007
o -----------------------------------------------------------------
| Revision: e500ac9fa6fb51ab80cfca8b9386006eed859fb2
| Ancestor: aa3aa11adf8d00af859ca930d94f18fe37cb66af
| Author: nosnilmot at pidgin.im
| Date: 2007-03-17T17:38:12
| Branch: im.pidgin.pidgin
|
| Modified files:
| libpurple/protocols/msn/object.c
|
| ChangeLog:
|
| Protection against missing SHA1C
|
|
| ============================================================
| --- libpurple/protocols/msn/object.c 4edb095d2cca5227dec8bcccf4ee26af6a121e32
| +++ libpurple/protocols/msn/object.c 6c78380a861edebf5b36331c0c34a2ea79d65fc3
| @@ -125,19 +125,24 @@ msn_object_to_string(const MsnObject *ob
| msn_object_to_string(const MsnObject *obj)
| {
| char *str;
| + const char *sha1c;
|
| g_return_val_if_fail(obj != NULL, NULL);
|
| + sha1c = msn_object_get_sha1c(obj);
| +
| str = g_strdup_printf("<msnobj Creator=\"%s\" Size=\"%d\" Type=\"%d\" "
| - "Location=\"%s\" Friendly=\"%s\" SHA1D=\"%s\" "
| - "SHA1C=\"%s\"/>",
| + "Location=\"%s\" Friendly=\"%s\" SHA1D=\"%s\""
| + "%s%s%s/>",
| msn_object_get_creator(obj),
| msn_object_get_size(obj),
| msn_object_get_type(obj),
| msn_object_get_location(obj),
| msn_object_get_friendly(obj),
| msn_object_get_sha1d(obj),
| - msn_object_get_sha1c(obj));
| + sha1c ? " SHA1C=\"" : "",
| + sha1c ? sha1c : "",
| + sha1c ? "\"" : "");
|
| return str;
| }
To get the patch for this revision, please do this:
mtn log --last 1 --diffs --from e500ac9fa6fb51ab80cfca8b9386006eed859fb2
More information about the Commits
mailing list