diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-02 20:43:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-02 20:43:20 +0000 |
commit | cc02109b2224e09e0afd52462b7cefdd21cba4df (patch) | |
tree | 559740096b3dd154645829255022935bfb4183a9 /usr.sbin/mrouted/cfparse.y | |
parent | 1229b08a41cb0455441509e3bc20934ee825f8ab (diff) |
sprintf killing; millert ok
Diffstat (limited to 'usr.sbin/mrouted/cfparse.y')
-rw-r--r-- | usr.sbin/mrouted/cfparse.y | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/mrouted/cfparse.y b/usr.sbin/mrouted/cfparse.y index 1072893de12..8e318b92ece 100644 --- a/usr.sbin/mrouted/cfparse.y +++ b/usr.sbin/mrouted/cfparse.y @@ -205,8 +205,7 @@ stmt : error fatal("Too many named boundaries (max %d)", MAXBOUNDS); } - boundlist[numbounds].name = malloc(strlen($2) + 1); - strcpy(boundlist[numbounds].name, $2); + boundlist[numbounds].name = strdup($2); boundlist[numbounds++].bound = $3; } | SYSNAM STRING { |