summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-08-09 15:13:37 +0000
committerBill Nottingham <notting@redhat.com>2000-08-09 15:13:37 +0000
commitfa6a4b5c8ab5a8e4fdcbb39a5cea24fd1408cb47 (patch)
treec5ccd156e64be09963829e3722dba0ba16a81036
parent0680540d2b94fc13538aa67018ef5134b131c35f (diff)
downloadanaconda-fa6a4b5c8ab5a8e4fdcbb39a5cea24fd1408cb47.tar.gz
anaconda-fa6a4b5c8ab5a8e4fdcbb39a5cea24fd1408cb47.tar.xz
anaconda-fa6a4b5c8ab5a8e4fdcbb39a5cea24fd1408cb47.zip
tweak ddc fix some, fix it in ddcprobe tookudzu-r0-69
-rw-r--r--ddcprobe/ddcprobe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ddcprobe/ddcprobe.c b/ddcprobe/ddcprobe.c
index 48b4afd64..7d1021d3a 100644
--- a/ddcprobe/ddcprobe.c
+++ b/ddcprobe/ddcprobe.c
@@ -22,6 +22,11 @@
char *snip(char *string)
{
int i;
+
+ /* This is always a 13 character buffer */
+ /* and it's not always terminated. */
+ string[12] = '\0';
+
while(((i = strlen(string)) > 0) &&
(isspace(string[i - 1]) ||
(string[i - 1] == '\n') ||