comparison src/dmargs.c @ 2423:8d057a2459e3

Adjust options help width check, it was off-by-one.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 20 Jan 2020 17:01:45 +0200
parents b7cd5dd0b82e
children 85b6d7ce8ca5
comparison
equal deleted inserted replaced
2422:ba8b44cd313b 2423:8d057a2459e3
219 str[next] && !isspace(str[next]) && 219 str[next] && !isspace(str[next]) &&
220 str[next] != '\n'; 220 str[next] != '\n';
221 next++, wlen++); 221 next++, wlen++);
222 222
223 // Check if we have too much of text? 223 // Check if we have too much of text?
224 if (linelen + wlen >= width) 224 if (linelen + wlen > width)
225 break; 225 break;
226 226
227 // Print what we have 227 // Print what we have
228 for (;pos < next; pos++, linelen++) 228 for (;pos < next; pos++, linelen++)
229 fputc(str[pos], fh); 229 fputc(str[pos], fh);