CHANGES IN V1.28.11
+ - cups-browsed: Naming of local queues is matched to CUPS'
+ current naming of temporary queues (no leading or trailing
+ underscores), to avoid duplicates in print dialogs which
+ support CUPS' temporary queues.
- libcupsfilters: Make cupsRasterParseIPPOptions() work correctly
with PPDs (Issue #436).
- Build system: Make missing DejaVuSans.ttf non-fatal in
/* Add terminating zero */
str[j] = '\0';
- i = 0;
- if (mode != 2) {
- /* Cut off trailing separators */
- while (strlen(str) > 0 && str[strlen(str)-1] == sep)
- str[strlen(str)-1] = '\0';
+ /* Cut off trailing separators */
+ while (strlen(str) > 0 && str[strlen(str) - 1] == sep)
+ str[strlen(str) - 1] = '\0';
- /* Cut off leading separators */
- while (str[i] == sep)
- ++i;
- }
+ /* Cut off leading separators */
+ i = 0;
+ while (str[i] == sep)
+ i ++;
- /* keep a free()-able string. +1 for trailing \0 */
+ /* Keep a free()-able string. +1 for trailing \0 */
return memmove(str, str + i, strlen(str) - i + 1);
}