[GRASS-dev] v.digit new category mode

Hello,
just noticed that on my box I don't see options for new category mode
switching. Same for 6.3.0, 6.4.1, 6.5.
Strangest thing is - when I add printf's to i_face.c lines 90+ to see
"val" value, it contains only last portion of sprintf call, but all
previous are missing.

GCC 4.5.2 (pie-0.4.5) on ~AMD64 Gentoo.

Probably I should stop drinking during working days?
Maris.

(attachments)

v.digit_mode.jpg

Answering to myself:
there was an sprintf abuse. If sprintf source and destination overlap,
results are undefined and thus depend on compiler, it's version and
position of the Moon and stars.

Fixed in r44983 for 6.5 and r44984 for 6.4.1.

Maris.

2011/1/7, Maris Nartiss <maris.gis@gmail.com>:

Hello,
just noticed that on my box I don't see options for new category mode
switching. Same for 6.3.0, 6.4.1, 6.5.
Strangest thing is - when I add printf's to i_face.c lines 90+ to see
"val" value, it contains only last portion of sprintf call, but all
previous are missing.

GCC 4.5.2 (pie-0.4.5) on ~AMD64 Gentoo.

Probably I should stop drinking during working days?
Maris.