[gnome-commander/gcmd-1-2-8: 8/9] Fixed problem with $c(16) counter formatting in advanced file rename templates
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8: 8/9] Fixed problem with $c(16) counter formatting in advanced file rename templates
- Date: Mon, 10 Aug 2009 17:38:00 +0000 (UTC)
commit 8fa107ed01acc408c04051f10cfc0ab5652a1d63
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sat Aug 1 14:49:41 2009 +0200
Fixed problem with $c(16) counter formatting in advanced file rename templates
NEWS | 1 +
doc/C/gnome-commander.xml | 3 +++
src/gnome-cmd-advrename-lexer.ll | 2 +-
3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 7865ce2..db8cf88 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ gnome-commander 1.2.8.1
Bug fixes:
* Fixed problem #587325 (crash in a clean chroot environment)
* Fixed problem #589108 (build error on openSUSE)
+ * Fixed problem with $c(16) counter formatting in advanced file rename templates
===================================
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 4846875..e8161bb 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -5987,6 +5987,9 @@
<listitem>
<para>Fixed problem #589108 (build error on openSUSE)</para>
</listitem>
+ <listitem>
+ <para>Fixed problem with $c(16) counter formatting in advanced file rename templates</para>
+ </listitem>
</itemizedlist>
</para>
</entry>
diff --git a/src/gnome-cmd-advrename-lexer.ll b/src/gnome-cmd-advrename-lexer.ll
index 7d2b801..55cc17d 100644
--- a/src/gnome-cmd-advrename-lexer.ll
+++ b/src/gnome-cmd-advrename-lexer.ll
@@ -466,7 +466,7 @@ char *gnome_cmd_advrename_gen_fname (char *new_fname, size_t new_fname_size, Gno
{
static char counter_value[MAX_PRECISION+1];
- snprintf (counter_value, MAX_PRECISION, (*i)->counter.fmt, (*i)->counter.n);
+ snprintf (counter_value, MAX_PRECISION+1, (*i)->counter.fmt, (*i)->counter.n);
fmt += counter_value;
(*i)->counter.n += (*i)->counter.step;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]