CoinUtils icon indicating copy to clipboard operation
CoinUtils copied to clipboard

Add a bigger buffer for CoinLpIO to allow to store bigger names

Open svigerske opened this issue 5 years ago • 3 comments

Issue created by migration from Trac.

Original creator: @ycollet

Original creation time: 2014-03-10 09:05:24

CoinLpIO complains when name are longer than 100 chars. You should either use string instead of chars to store names or use a ifdef to allow to fine tune the maximum size of the buffer like:

#ifndef COIN_LPIO_BUFFER #define COIN_LPIO_BUFFER 1024 #endif

And use this symbol where the buffer is too small.

svigerske avatar Mar 02 '19 16:03 svigerske

Attachment CoinLpIO.cpp by @ycollet created at 2014-03-10 09:06:03

A first try to allow to set the maximum size of the buffer at compile time.

svigerske avatar Mar 02 '19 16:03 svigerske

CC @ycollet

svigerske avatar Mar 02 '19 16:03 svigerske

Unfortunately, code has been reformatted, which will make it difficult to apply the changes. Can you create a pull request with respect to the current CoinUtils source for this?

svigerske avatar Mar 10 '19 12:03 svigerske