# Re: [dev] New and updated backends (pnm patch)

From: Henning Meier-Geinitz (hmg-ml@gmx.de)
Date: Sun Apr 08 2001 - 12:06:51 PDT

- Next message: Nick R: "Problem scanning colour images using a Snapscan 1236s"
  - Previous message: Ceri Hankey: "Re: [dev] New and updated backends"
  - In reply to: mh: "Re: [dev] New and updated backends (pnm patch)"
  - Next in thread: mh: "Re: [dev] New and updated backends (pnm patch)"
  - Next in thread: Ceri Hankey: "Re: [dev] New and updated backends"
  - Reply: mh: "Re: [dev] New and updated backends (pnm patch)"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  Hi,

  On Sun, Apr 08, 2001 at 05:26:42PM +0200, mh wrote:
  > May I, as an ordinary user, suggest the attached mini-patch for the pnm-backend

  Input from "ordinary" users is always appreciated :-)

  > (for the case it's still included in Sane-1.0.5)?
  > The problem:
  > If you type in a valid filename like
  > /home/bla/testimage.pnm
  > and then delete some characters like
  > /home/bla/testimage.p
  > SANE_INFO_RELOAD_PARAMS isn't set and therefore the frontends can't
  > update their displays correctly. The patch (against pnm.c in Sane-1.0.4) ensures
  > that SANE_INFO_RELOAD_PARAMS is set whenever the string changes.

  I don't know too much about the pnm backend. Just a question. By
  removing the test for a readable pnm file the parameters are always
  reloaded. I understand that, you may be right here. But why the
  "filename[strlen(value)+1] = 0;"? Shouldn't filename contain a
  trailing zero?

  Bye,
  Henning

      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

  - Next message: Nick R: "Problem scanning colour images using a Snapscan 1236s"
  - Previous message: Ceri Hankey: "Re: [dev] New and updated backends"
  - In reply to: mh: "Re: [dev] New and updated backends (pnm patch)"
  - Next in thread: mh: "Re: [dev] New and updated backends (pnm patch)"
  - Next in thread: Ceri Hankey: "Re: [dev] New and updated backends"
  - Reply: mh: "Re: [dev] New and updated backends (pnm patch)"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Sun Apr 08 2001 - 12:44:55 PDT