If the underscore is a last character in queue name, remove it - it
looks better in print dialogs.
- The `cupsfilter` command now shows error messages when options are used
incorrectly (Issue #88)
- Documentation fixes (Issue #92)
+- Remove underscore from queue name if it is the last character (PR #56)
Changes in CUPS v2.3.4
*nameptr++ = '_';
}
+ /*
+ * Remove an underscore if it is the last character
+ * and isn't the only character in the string
+ */
+ if (nameptr[-1] == '_' && nameptr > (name + 1))
+ nameptr--;
+
*nameptr = '\0';
}