summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4b0cf90)
*/
maxlen = state->h * state->w * (col+1);
*/
maxlen = state->h * state->w * (col+1);
- ret = snewn(maxlen, char);
+ ret = snewn(maxlen+1, char);
p = ret;
for (y = 0; y < state->h; y++) {
p = ret;
for (y = 0; y < state->h; y++) {
*/
maxlen = (2*state->h+1) * (state->w * (col+1) + 2);
*/
maxlen = (2*state->h+1) * (state->w * (col+1) + 2);
- ret = snewn(maxlen, char);
+ ret = snewn(maxlen+1, char);
p = ret;
for (y = 0; y <= 2*state->h; y++) {
p = ret;
for (y = 0; y <= 2*state->h; y++) {
*/
maxlen = state->h * state->w * (col+1);
*/
maxlen = state->h * state->w * (col+1);
- ret = snewn(maxlen, char);
+ ret = snewn(maxlen+1, char);
p = ret;
for (y = 0; y < state->h; y++) {
p = ret;
for (y = 0; y < state->h; y++) {
*/
maxlen = state->h * state->w * (col+o+1);
*/
maxlen = state->h * state->w * (col+o+1);
- ret = snewn(maxlen, char);
+ ret = snewn(maxlen+1, char);
p = ret;
for (y = 0; y < state->h; y++) {
p = ret;
for (y = 0; y < state->h; y++) {