Maybe we should use "snprintf" instead of "sprintf".
Ming-I Hsieh (mihs@wm28.csie.ncu.edu.tw)
Tue, 15 Jun 1999 12:31:16 +0800
        static char buf[100];
        switch (dim)
        {
        case DIM_IN:
                // (1/16th (0.0625) is smallest unit the ui will
                // let them enter (via the TopRuler), so let's
                // set the precision so that we get nice roundoff.
                // TODO we may need to improve this later.
                sprintf(buf,"%.4fin",value);
                ^^^^^^^^^ here, if we use "snprintf" instead of
"sprintf". I think it will
more stable! :)
              break;
        case DIM_CM:
                sprintf(buf,"%.1fcm",(value * 2.54));
This archive was generated by hypermail 1.03b2.