summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroland <roland>2005-08-25 22:49:21 +0000
committerroland <roland>2005-08-25 22:49:21 +0000
commit264ec52e8ecaebb2450d7695c774e2377c711d66 (patch)
treebed7ecabe235214db4ad32cbbc54e224912041a7
parentaf4cc7a620b56f0bdd759227062a865ff847d6fb (diff)
downloadsystemtap-steved-264ec52e8ecaebb2450d7695c774e2377c711d66.tar.gz
systemtap-steved-264ec52e8ecaebb2450d7695c774e2377c711d66.tar.xz
systemtap-steved-264ec52e8ecaebb2450d7695c774e2377c711d66.zip
(deref_string): terminate
-rw-r--r--runtime/loc2c-runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/loc2c-runtime.h b/runtime/loc2c-runtime.h
index 91b5a0c5..4177b8a2 100644
--- a/runtime/loc2c-runtime.h
+++ b/runtime/loc2c-runtime.h
@@ -182,5 +182,6 @@
_len > 1 && (_c = deref (1, _addr)) != '\0'; \
--_len, ++_addr) \
*_d++ = _c; \
+ *_d = '\0'; \
(dst); \
})