summaryrefslogtreecommitdiffstats
path: root/dotlock.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-01-08 23:09:30 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-01-08 23:09:30 +0000
commitcfdb67df5d5daa13ce785a2f4e87d8f12b673d71 (patch)
tree2d3d9b569a3392e85663155bd6dfcdc81a9e07e9 /dotlock.c
parentd5a336245304225932d3b5d18f82336bebb01efe (diff)
Let check_sec.sh check for use of the unsafe malloc, realloc, free,
and strdup routines. While we are on it, plug some memory leaks and make some code understandable.
Diffstat (limited to 'dotlock.c')
-rw-r--r--dotlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dotlock.c b/dotlock.c
index aadbb082..560db7ff 100644
--- a/dotlock.c
+++ b/dotlock.c
@@ -146,7 +146,7 @@ int main (int argc, char **argv)
/* determine the system's host name */
uname (&utsname);
- if (!(Hostname = strdup (utsname.nodename)))
+ if (!(Hostname = strdup (utsname.nodename))) /* __MEM_CHECKED__ */
return DL_EX_ERROR;
if ((p = strchr (Hostname, '.')))
*p = '\0';