From 757d360925f76341c3c07f4c319830fab0091f2b Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Tue, 7 May 2019 18:32:46 +0200
Subject: [PATCH] Don't increment string position if nothing was written to the
string.
---
apps/wget65.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/apps/wget65.c b/apps/wget65.c
index b1a4c1a..7dd1f75 100644
--- a/apps/wget65.c
+++ b/apps/wget65.c
@@ -582,6 +582,10 @@ int main(int, char *argv[])
buffer[i] = '.';
dot = &buffer[i];
}
+ else
+ {
+ continue;
+ }
++i;
}
}