[PATCH] Fix roman numeral capitalization
- From: Santtu Lakkala <inz inz fi>
- To: easytag-list gnome org
- Subject: [PATCH] Fix roman numeral capitalization
- Date: Thu, 6 Mar 2014 08:20:29 +0200
Roman numeral capitalization was broken by the leak fix in commit
ae3dd7b81ba283ba0e9ea3d4aff326deedcc077e due to wrong variable usage.
---
src/scan.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/scan.c b/src/scan.c
index 1a0bf52..e2476aa 100644
--- a/src/scan.c
+++ b/src/scan.c
@@ -1590,8 +1590,8 @@ void Scan_Process_Fields_First_Letters_Uppercase (gchar *string)
// If the word is a roman numeral, capitalize all of it
if ((len = Scan_Word_Is_Roman_Numeral(word)))
{
- gchar *tmp = g_utf8_strup (temp, len);
- strncpy (string, tmp, len);
+ gchar *tmp = g_utf8_strup (word, len);
+ strncpy (word, tmp, len);
g_free (tmp);
} else
{
--
1.8.3.2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]