BUG FIXES - sporadic hostnames when strlen() is 15

BUG FIXES:

1. added copy_device_name() to ensure string null-termination in networkmap/function.c
    there were cases where 15-char hostnames were corrupted by lack of null-termination,
    resulting in (sporadic) concatenated names.

2. fixed wrong Array size in client_function.js - should be Array(9) as there are 9 fields in a record.