Package: metar Version: 20060405.1-1 Severity: normal Hi,
metar is reporting wrong cloud levels. I think that replacing the number "3" with the "99" will fix the problem, as in the patch below: --- metar-20060405.1.orig/src/metar.c +++ metar-20060405.1/src/metar.c @@ -350,7 +350,7 @@ memcpy(&cloud->type, token+pmatch[1].rm_so, (size < 3 ? size : 3)); size=pmatch[2].rm_eo - pmatch[2].rm_so; - memset(tmp, 0x0, 3); + memset(tmp, 0x0, 99); memcpy(tmp, token+pmatch[2].rm_so, (size < 3 ? size : 3)); sscanf(tmp, "%d", (int*)&cloud->level); Thanks, Jakson -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-1-amd64-k8 Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8) Versions of packages metar depends on: ii libc6 2.3.5-8.1 GNU C Library: Shared libraries an ii libcurl3-gnutls 7.15.3-1 Multi-protocol file transfer libra metar recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]