[gnome-commander] Fixed problem with $c(16) counter formatting in advanced file rename templates



commit 4eea542a63f77eaf1ec8a8138699bc8c0cf31e6f
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 fb836a5..b5230db 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ gnome-commander 1.2.9
 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
 
 New features:
  * New or updated docs: de, es
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index f9a3815..8c4be80 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -5957,6 +5957,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>
                 <para>New features:</para>
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]