Newbie: pointers and structs
===

        typedef struct
    {
        char *word;
        struct node *next;
    } node;

    // set all values in the hash table to null
    for(int i = 0; i < HASH_SIZE; i++)
    {
        hashtable[i] = NULL;
    }

        // declare a node and allocate memory
        node n;
        n.word = malloc( strlen(gotcha)*sizeof(char) );
        
        // save the word into the node
        strcpy(n.word, gotcha);

        // hash the word
        int hash_value = hash(n.word);
        
        // start saving addresses to the hashtable
        n.next = hashtable[hash_value];
        hashtable[hash_value] = &n;


I am receiving the following two errors on the last 2 lines of code:
dictionary.c:89:16: error: assignment from incompatible pointer type [-Werror]
dictionary.c:90:31: error: assignment from incompatible pointer type [-Werror]
How do I save pointer values in these two places?
