summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/gtk/follow_tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gtk/follow_tcp.c b/ui/gtk/follow_tcp.c
index 2735c19383..7d78ffc7a7 100644
--- a/ui/gtk/follow_tcp.c
+++ b/ui/gtk/follow_tcp.c
@@ -320,6 +320,7 @@ sgetline(char *str, int *next) {
end = strstr(str, "\r\n");
if (!end) {
+ *next = strlen(str);
return NULL;
}
*end = '\0';