Commit 0cd642ef authored by Richard P. Curnow's avatar Richard P. Curnow

In make_globber, fix blocksize for memset calls.

The fix was suggested by Christoph Dworzak, based on debugging segfaults on
x86_64.
parent 5450c089
......@@ -5,6 +5,7 @@ Aredridel
Balzs Szab
Bardur Arantsson
Benj. Mako Hill
Christoph Dworzak
Christopher Rosado
Chung-chieh Shan
Corrin Lakeland
......
......@@ -97,9 +97,9 @@ struct globber *make_globber(const char *wildstring)/*{{{*/
unsigned int mask;
result = new(struct globber);
memset(&result->pat, 0x00, 256*sizeof(unsigned long));
memset(&result->starpat, 0x00, sizeof(unsigned long));
memset(&result->twostarpat, 0x00, sizeof(unsigned long));
memset(&result->pat, 0x00, 256*sizeof(unsigned int));
memset(&result->starpat, 0x00, sizeof(unsigned int));
memset(&result->twostarpat, 0x00, sizeof(unsigned int));
mask = 0x1;
n = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment