[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: smsreader problem
From: |
Bostjan Muller |
Subject: |
Re: smsreader problem |
Date: |
Sat, 13 Apr 2002 16:39:13 +0200 |
User-agent: |
Mutt/1.3.28i |
* On 13-04-02 at 16:16 Pawel Kot (address@hidden) wrote:
+----Here quoted text begins----+
> Try this:
> --- gnokii/gnokii.c~ Sat Apr 13 16:13:02 2002
> +++ gnokii/gnokii.c Sat Apr 13 16:13:02 2002
> @@ -3380,7 +3380,7 @@
> else if (sscanf(s, "%d/%d:%d-%d-", &i1, &i2, &msgno, &msgpart) == 4)
> sprintf(buf, "/tmp/sms/mail_%d_%03d", msgno, msgpart);
> else sprintf(buf, "/tmp/sms/unknown_%d_%d", getpid(), unknown++);
> - if ((output = fopen(buf, "r")) == NULL) {
> + if ((output = fopen(buf, "r")) != NULL) {
> fprintf(stderr, _("### Exists?!\n"));
> return GE_CANTOPENFILE;
> }
+----and here the quote ends----+
Thank you! The patch worked.
Regards/Lep pozdrav
Boštjan Müller
--
[*] Boštjan Müller - address@hidden - http://neonatus.net/~neonatus [*]
[*] GPG/PGP key -> finger: address@hidden, DSA id: 0x9B2FF108 [*]
[*] Celular: +386(0)41243189, Powered by Debian GNU/LiNUX - ICQ #:7506644 [*]
Press every key to continue.