From c1775fa65273b5f5590a0319563159b13e901fbb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Jan 2011 20:59:40 +0000 Subject: Code cleanups (cpplint). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2804 a436a847-0d15-0410-975c-d299462d15a1 --- src/binary_location.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/binary_location.h') diff --git a/src/binary_location.h b/src/binary_location.h index 033dcae..ef10ab3 100644 --- a/src/binary_location.h +++ b/src/binary_location.h @@ -33,7 +33,7 @@ binary_location() Dl_info dli; const int ret = dladdr((void*)&binary_location, &dli); if (ret) { - char* const bin_loc = (char*)calloc(PATH_MAX, sizeof(char)); + char* const bin_loc = (char*)calloc(PATH_MAX, 1); realpath(dli.dli_fname, bin_loc); return bin_loc; } -- cgit v1.2.1