=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/file/magic-load.c,v retrieving revision 1.22 retrieving revision 1.23 diff -c -r1.22 -r1.23 *** src/usr.bin/file/magic-load.c 2016/05/01 10:56:03 1.22 --- src/usr.bin/file/magic-load.c 2016/05/01 14:57:15 1.23 *************** *** 1,4 **** ! /* $OpenBSD: magic-load.c,v 1.22 2016/05/01 10:56:03 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: magic-load.c,v 1.23 2016/05/01 14:57:15 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott *************** *** 638,649 **** ml->type_operator = ' '; ml->type_operand = 0; ! if (strncmp(s, "name", (sizeof "name") - 1) == 0) { ml->type = MAGIC_TYPE_NAME; ml->type_string = xstrdup(s); goto done; } ! if (strncmp(s, "use", (sizeof "use") - 1) == 0) { ml->type = MAGIC_TYPE_USE; ml->type_string = xstrdup(s); goto done; --- 638,649 ---- ml->type_operator = ' '; ml->type_operand = 0; ! if (strcmp(s, "name") == 0) { ml->type = MAGIC_TYPE_NAME; ml->type_string = xstrdup(s); goto done; } ! if (strcmp(s, "use") == 0) { ml->type = MAGIC_TYPE_USE; ml->type_string = xstrdup(s); goto done;