~ubuntu-branches/ubuntu/wily/trafficserver/wily

« back to all changes in this revision

Viewing changes to mgmt/utils/EnvBlock.cc

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2012-12-17 22:28:16 UTC
  • mfrom: (5.1.8 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121217222816-7xwjsx5k76zkb63d
Tags: 3.2.0-1ubuntu1
* Revert FreeBSD strerror_r() fixes that give errors with glibc 2.16.
* Apply patch from Konstantinos Margaritis to define barriers on ARM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
  while (ht_entry != NULL && i < str_len) {
106
106
    name = (const char *) ink_hash_table_entry_key(table, ht_entry);
107
107
    value = (const char *) ink_hash_table_entry_value(table, ht_entry);
108
 
    ink_strncpy(env_str + i, name, str_len - i);
 
108
    ink_strlcpy(env_str + i, name, str_len - i);
109
109
    i += strlen(name);
110
 
    ink_strncpy(env_str + i, "=", str_len - i);
 
110
    ink_strlcpy(env_str + i, "=", str_len - i);
111
111
    i++;
112
 
    ink_strncpy(env_str + i, value - i, str_len - i);
 
112
    ink_strlcpy(env_str + i, value - i, str_len - i);
113
113
    i += strlen(value) + 1;
114
114
    ht_entry = ink_hash_table_iterator_next(table, &ht_iter);
115
115
  }