Package: snac
Version: 0.3-4
Severity: important
Tags: patch
Justification: totally bad results, if you use trigonomethric functions in a
formula
When snac run without config file, it incorrectly set the mode_prefs.angle
variable to "Deg", which should be "Deg ".
How to reproduce:
rm ~/.gnome/SNAC
snac
and type: sin(60)
The result will be a negative number, which is absolutely wrong, since the
good answer is sqrt(3)/2.
The patch:
diff -urN snac-0.3/src/preferences.c snac-0.3.fixed/src/preferences.c
--- snac-0.3/src/preferences.c 2005-06-01 12:58:08.000000000 +0200
+++ snac-0.3.fixed/src/preferences.c 2005-06-01 12:56:49.000000000 +0200
@@ -429,7 +429,7 @@
g_free(str);
}
else
- strcpy(mode_prefs.angle,"Deg");
+ strcpy(mode_prefs.angle,"Deg ");
if((str = gnome_config_get_string("/SNAC/modes/format")) != NULL){
strcpy(mode_prefs.format,str);
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-cko4-swsusp2
Locale: LANG=C, LC_CTYPE=hu_HU (charmap=ISO-8859-2)
Versions of packages snac depends on:
ii gdk-imlib1 1.9.14-16.2 imaging library for use with gtk (
ii libart2 1.4.2-19 The GNOME canvas widget - runtime
ii libaudiofile0 0.2.6-6 Open-source version of SGI's audio
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libdb3 3.2.9-22 Berkeley v3 Database Libraries [ru
ii libesd-alsa0 [libesd0] 0.2.35-2 Enlightened Sound Daemon (ALSA) -
ii libglib1.2 1.2.10-9 The GLib library of C routines
ii libgnome32 1.4.2-19 The GNOME libraries
ii libgnomesupport0 1.4.2-19 The GNOME libraries (Support libra
ii libgnomeui32 1.4.2-19 The GNOME libraries (User Interfac
ii libgtk1.2 1.2.10-17 The GIMP Toolkit set of widgets fo
ii libpopt0 1.7-5 lib for parsing cmdline parameters
ii xlibs 4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]