changeset 2652:6dae0da66b3c

* added a history patch from Leila
author Andrew L Janke <a.janke@gmail.com>
date Tue, 10 Apr 2012 11:37:35 +1000
parents 6665274ca051
children 8825f99d6143 5189bc0a26e7
files ChangeLog libsrc2/grpattr.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+2012-04-10  Andrew L Janke <a.janke@gmail.com>
+   * libsrc2/grpattr.c: added a history patch from Leila
 
 2012-03-14  Andrew L Janke <a.janke@gmail.com>
    * added progs/mincsample
--- a/libsrc2/grpattr.c
+++ b/libsrc2/grpattr.c
@@ -592,7 +592,12 @@
 	return (MI_ERROR);
     }
 
-    strncpy(fullpath, MI_ROOT_PATH "/" MI_INFO_NAME, sizeof (fullpath));
+    if (strcmp(name,"history")) {
+        strncpy(fullpath, MI_ROOT_PATH "/" MI_INFO_NAME, sizeof (fullpath));
+    }
+    else {
+        strncpy(fullpath, MI_ROOT_PATH "/" , sizeof (fullpath));
+    }
     if (*path != '/') {
         strncat(fullpath, "/", sizeof (fullpath) - strlen(fullpath));
     }