Mercurial > vim
comparison src/xxd/xxd.c @ 2770:25672ad7f377 v7.3.161
updated for version 7.3.161
Problem: Items on the stack may be too big.
Solution: Make items static or allocate them.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 11 Apr 2011 21:35:11 +0200 |
parents | d0cae5983609 |
children | d356b5ce84ce |
comparison
equal
deleted
inserted
replaced
2769:ccce1db172b3 | 2770:25672ad7f377 |
---|---|
474 int cols = 0, nonzero = 0, autoskip = 0, hextype = HEX_NORMAL; | 474 int cols = 0, nonzero = 0, autoskip = 0, hextype = HEX_NORMAL; |
475 int ebcdic = 0; | 475 int ebcdic = 0; |
476 int octspergrp = -1; /* number of octets grouped in output */ | 476 int octspergrp = -1; /* number of octets grouped in output */ |
477 int grplen; /* total chars per octet group */ | 477 int grplen; /* total chars per octet group */ |
478 long length = -1, n = 0, seekoff = 0; | 478 long length = -1, n = 0, seekoff = 0; |
479 char l[LLEN+1]; | 479 static char l[LLEN+1]; /* static because it may be too big for stack */ |
480 char *pp; | 480 char *pp; |
481 | 481 |
482 #ifdef AMIGA | 482 #ifdef AMIGA |
483 /* This program doesn't work when started from the Workbench */ | 483 /* This program doesn't work when started from the Workbench */ |
484 if (argc == 0) | 484 if (argc == 0) |