/pidgin/main: f93f8b0f36c3: Fix purple_str_to_time()'s tz_off si...
Richard Laager
rlaager at pidgin.im
Tue Jun 25 01:02:39 EDT 2013
Changeset: f93f8b0f36c382a5b3b9b9d82c6cff4a4d87cf7b
Author: Richard Laager <rlaager at pidgin.im>
Date: 2013-06-24 22:25 -0500
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/f93f8b0f36c3
Description:
Fix purple_str_to_time()'s tz_off sign handling
This was introduced with the near-rewrite of this function in the
patch from #13131 (hg commit 6a74f42c8c04). It presumably went
unnoticed this long because most (all default?) locales don't use
the timezone offset when outputting dates.
Refs #13131
Fixes #15675
diffstat:
libpurple/util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/libpurple/util.c b/libpurple/util.c
--- a/libpurple/util.c
+++ b/libpurple/util.c
@@ -807,7 +807,7 @@ purple_str_to_time(const char *timestamp
} while (*str >= '0' && *str <= '9');
}
- sign = (*str == '+') ? -1 : 1;
+ sign = (*str == '+') ? 1 : -1;
/* Process the timezone */
if (*str == '+' || *str == '-') {
More information about the Commits
mailing list