]> granicus.if.org Git - neomutt/commitdiff
Fix documentation for DT_MAGIC types. (closes #3845)
authorKevin McCarthy <kevin@8t8.us>
Tue, 31 May 2016 20:20:28 +0000 (13:20 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 31 May 2016 20:20:28 +0000 (13:20 -0700)
With the rename of M_ to MUTT_, the documentation generator in
makedoc.c needed to be adjusted for the new prefix size.

Thanks to Damien Riegel for the suggested fix.

doc/makedoc.c

index 382b422efe213d40783faca339f05a6bfe0d2d24..fb49af5f122e47b016f81c611b979521b1951a35 100644 (file)
@@ -506,7 +506,7 @@ static void pretty_default (char *t, size_t l, const char *s, int type)
     case DT_MAGIC:
     {
       /* heuristic! */
-      strncpy (t, s + 2, l);
+      strncpy (t, s + 5, l);
       for (; *t; t++) *t = tolower ((unsigned char) *t);
       break;
     }