summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b9c2428)
This bug was introduced in
01117585. It messes up the display and can lead to a
segfault.
num = 0;
}
/* replace newlines by spaces */
num = 0;
}
/* replace newlines by spaces */
- for (i = 0; i < len; i++) {
+ for (i = 0; i < len && str[i]; i++) {
if (str[i] == '\n')
str[i] = ' ';
}
if (str[i] == '\n')
str[i] = ' ';
}