projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc7b32b
)
Fix use of sizeof in nmem_malloc call
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 19 Mar 2013 12:12:32 +0000
(13:12 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 19 Mar 2013 12:15:10 +0000
(13:15 +0100)
Now sizeof(char*) , rather than sizeof(char).
src/client.c
patch
|
blob
|
history
diff --git
a/src/client.c
b/src/client.c
index
25f6505
..
c4ab916
100644
(file)
--- a/
src/client.c
+++ b/
src/client.c
@@
-1703,7
+1703,7
@@
struct suggestions* client_suggestions_create(const char* suggestions_string)
&suggestions->num, 1, '\\', 0);
/* Set up misspelled array */
suggestions->misspelled = (char **)
- nmem_malloc(nmem, suggestions->num * sizeof(**suggestions->misspelled));
+ nmem_malloc(nmem, suggestions->num * sizeof(*suggestions->misspelled));
/* replace = with \0 .. for each item */
for (i = 0; i < suggestions->num; i++)
{