]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - lib/string.c
percpu_ref: Update doc to dissuade users from depending on internal RCU grace periods
[linux.git] / lib / string.c
index 64a9e33f1daae4b2bb02ba7dbdc0bf431756935f..2c0900a5d51a2a3d765d13e734171a37b068fc8d 100644 (file)
@@ -203,7 +203,7 @@ ssize_t strscpy(char *dest, const char *src, size_t count)
        while (max >= sizeof(unsigned long)) {
                unsigned long c, data;
 
-               c = *(unsigned long *)(src+res);
+               c = read_word_at_a_time(src+res);
                if (has_zero(c, &data, &constants)) {
                        data = prep_zero_mask(c, data, &constants);
                        data = create_zero_mask(data);