summary refs log tree commit diff stats
path: root/plugins/upd/upd.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-01-17 18:57:02 -0500
committerTingPing <tingping@tingping.se>2013-01-17 18:57:02 -0500
commita46f89998c4faa4b4768e18333ec98c5107ba90b (patch)
tree0299f5644c2bb207e8c7979921fd695a2aebcfec /plugins/upd/upd.c
parent606cb09fa5a04fc47468fac3011c9962dc4699d3 (diff)
actually fix updchk
Diffstat (limited to 'plugins/upd/upd.c')
-rw-r--r--plugins/upd/upd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index 2b28e74d..11893eb6 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -154,7 +154,10 @@ check_version ()
 		InternetCloseHandle (hResource);
 		InternetCloseHandle (hConnect);
 		InternetCloseHandle (hOpen);
-		return buffer;
+		if (strlen (buffer) == 5)
+			return buffer;
+		else
+			return "Unknown";
 	}
 }