diff options
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r-- | src/testing/testing.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index b34815364..7dbd97294 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -786,7 +786,7 @@ update_config (void *cls, | |||
786 | struct UpdateContext *uc = cls; | 786 | struct UpdateContext *uc = cls; |
787 | unsigned int ival; | 787 | unsigned int ival; |
788 | char cval[12]; | 788 | char cval[12]; |
789 | char uval[128]; | 789 | char uval[PATH_MAX]; |
790 | char *single_variable; | 790 | char *single_variable; |
791 | char *per_host_variable; | 791 | char *per_host_variable; |
792 | unsigned long long num_per_host; | 792 | unsigned long long num_per_host; |
@@ -839,7 +839,9 @@ update_config (void *cls, | |||
839 | GNUNET_CONFIGURATION_get_value_yesno (uc->cfg, "testing", | 839 | GNUNET_CONFIGURATION_get_value_yesno (uc->cfg, "testing", |
840 | single_variable)) | 840 | single_variable)) |
841 | { | 841 | { |
842 | GNUNET_snprintf (uval, sizeof (uval), "%s/%s.sock", | 842 | GNUNET_snprintf (uval, |
843 | sizeof (uval), | ||
844 | "%s/%s.sock", | ||
843 | uc->gnunet_home, section); | 845 | uc->gnunet_home, section); |
844 | value = uval; | 846 | value = uval; |
845 | } | 847 | } |