🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3012

Re: JOE 1.0.12 - Blurb

#3012
From: Norman Diamond
Date: Fri, 26 Aug 1994 10:25
15 lines
1261 bytes
In article <Cv4GDy.GMr@world.std.com> jhallen@world.std.com (Joseph H Allen) writes:
>unsigned short a=1024;
>unsigned short b=1024;
>int c=311;
>char *d="Hello there";
>main() { printf("%x %x\n",d+c,d+a-(b-c)); }

>The fix for JOE is to change the two 'unsigned short's in the file b.h to
>'int's.  This is truly a bizzare problem.

The correct fix is to change the two '%x' conversions to '%hx' conversions.
%x requires an unsigned int argument; %hx requires an unsigned short argument.
--
 <<  If this were the company's opinion, I would not be allowed to post it.  >>
segmentation fault (california dumped)
Technical Details
Message-ID: <33kfu1$eff@usenet.pa.dec.com>
Path: arc1-ca.pugleaf.net!wupost!psuvax1!rutgers!att-out!pacbell.com!decwrl!pa.dec.com!jrd.dec.com!diamond
References: <Cur3x5.A95@world.std.com> <Cv0B4q.EDu@world.std.com> <Cv1o5M.2GC@world.std.com> <Cv4GDy.GMr@world.std.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!wupost!psuvax1!rutgers!att-out!pacbell.com!decwrl!pa.dec.com!jrd.dec.com!diamond
From: diamond@jrd.dec.com (Norman Diamond)
Newsgroups: comp.editors,alt.sources,comp.misc,comp.unix.misc,comp.mail.misc,comp.unix.admin
Subject: Re: JOE 1.0.12 - Blurb
Date: 26 Aug 1994 10:25:05 GMT
Organization: Digital Equipment Corporation Japan , Tokyo
Lines: 15
Distribution: inet
Message-ID: <33kfu1$eff@usenet.pa.dec.com>
References: <Cur3x5.A95@world.std.com> <Cv0B4q.EDu@world.std.com> <Cv1o5M.2GC@world.std.com> <Cv4GDy.GMr@world.std.com>
Reply-To: diamond@jrd.dec.com (Norman Diamond)
NNTP-Posting-Host: jit533.jrd.dec.com