diff --git a/kernel/procfs.c b/kernel/procfs.c index 3ba78b5f..4cc6b2da 100644 --- a/kernel/procfs.c +++ b/kernel/procfs.c @@ -620,7 +620,7 @@ void process_procfs_request(unsigned long rarg) * mcos%d/PID/auxv */ if (strcmp(p, "auxv") == 0) { - unsigned int limit = AUXV_LEN * sizeof(int); + unsigned int limit = AUXV_LEN * sizeof(unsigned long); unsigned int len = r->count; if (r->offset < limit) { if (limit < r->offset + r->count) {