× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Query Reply
  • From: "Michael Ketcham" <mket@xxxxxxxxxx>
  • Date: Thu, 19 Oct 2000 08:08:04 -0700
  • Importance: Normal

I have a problem with this code. In session.c / tn5250_session_query_reply

As you can see, the two sprintf formats into indexes 30-33 (1, 2, 3, 4) in
the first sprintf and into index 35-36 (1,2). This leaves index 34 as junk.
The subsequent for loop translates that junk into its EBCDIC equvviiellent.

/* format locations 30, 31, 32, 33 using the %04 */
   sprintf ((char*)temp + 30, "%04d", dev_type);

/* format locations +35, 36 using the %02 */

   sprintf ((char*)temp + 35, "%02d", dev_model);

   for (i = 30; i <= 36; i++)
      temp[i] = tn5250_char_map_to_host (
            tn5250_display_char_map (This->display), temp[i]);




Michael S. Ketcham





+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to LINUX5250@midrange.com.
| To subscribe to this list send email to LINUX5250-SUB@midrange.com.
| To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.