=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/indent/indent.c,v retrieving revision 1.26 retrieving revision 1.27 diff -c -r1.26 -r1.27 *** src/usr.bin/indent/indent.c 2015/01/16 06:40:08 1.26 --- src/usr.bin/indent/indent.c 2015/08/20 22:32:41 1.27 *************** *** 1,4 **** ! /* $OpenBSD: indent.c,v 1.26 2015/01/16 06:40:08 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 --- 1,4 ---- ! /* $OpenBSD: indent.c,v 1.27 2015/08/20 22:32:41 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 *************** *** 89,98 **** ps.last_nl = true; /* this is true if the last thing scanned was * a newline */ ps.last_token = semicolon; ! combuf = (char *) malloc(bufsize); ! labbuf = (char *) malloc(bufsize); ! codebuf = (char *) malloc(bufsize); ! tokenbuf = (char *) malloc(bufsize); if (combuf == NULL || labbuf == NULL || codebuf == NULL || tokenbuf == NULL) err(1, NULL); --- 89,98 ---- ps.last_nl = true; /* this is true if the last thing scanned was * a newline */ ps.last_token = semicolon; ! combuf = malloc(bufsize); ! labbuf = malloc(bufsize); ! codebuf = malloc(bufsize); ! tokenbuf = malloc(bufsize); if (combuf == NULL || labbuf == NULL || codebuf == NULL || tokenbuf == NULL) err(1, NULL); *************** *** 109,115 **** s_com = e_com = combuf + 1; s_token = e_token = tokenbuf + 1; ! in_buffer = (char *) malloc(10); if (in_buffer == NULL) err(1, NULL); in_buffer_limit = in_buffer + 8; --- 109,115 ---- s_com = e_com = combuf + 1; s_token = e_token = tokenbuf + 1; ! in_buffer = malloc(10); if (in_buffer == NULL) err(1, NULL); in_buffer_limit = in_buffer + 8;