summaryrefslogtreecommitdiffstats
path: root/winsup/utils/cygcheck.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2013-08-23 19:56:26 +0000
committerChristopher Faylor <me@cgf.cx>2013-08-23 19:56:26 +0000
commit94f900f805c2a2049e2e857457ec24d269ec08b0 (patch)
treeba994df03e56f1c245e6abd3f210a9cec3fac348 /winsup/utils/cygcheck.cc
parent1560d3e28184be3b7701b83866eac46136cf6a9a (diff)
downloadcygnal-94f900f805c2a2049e2e857457ec24d269ec08b0.tar.gz
cygnal-94f900f805c2a2049e2e857457ec24d269ec08b0.tar.bz2
cygnal-94f900f805c2a2049e2e857457ec24d269ec08b0.zip
* cygcheck.cc (package_grep): Accommodate arch-specific package layout.
Diffstat (limited to 'winsup/utils/cygcheck.cc')
-rw-r--r--winsup/utils/cygcheck.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc
index 0447e585a..b9e93b966 100644
--- a/winsup/utils/cygcheck.cc
+++ b/winsup/utils/cygcheck.cc
@@ -2176,7 +2176,7 @@ package_grep (char *search)
}
/* construct the actual URL by escaping */
- char *url = (char *) alloca (sizeof (base_url) + strlen (search) * 3);
+ char *url = (char *) alloca (sizeof (base_url) + strlen ("&arch=x86_64") + strlen (search) * 3);
strcpy (url, base_url);
char *dest;
@@ -2194,7 +2194,11 @@ package_grep (char *search)
dest += 2;
}
}
- *dest = 0;
+#ifdef __x86_64__
+ strcpy (dest, "&arch=x86_64");
+#else
+ strcpy (dest, "&arch=x86");
+#endif
/* Connect to the net and open the URL. */
if (pInternetAttemptConnect (0) != ERROR_SUCCESS)