rgetmsg (esql/c) can lead one astray
Posted in 1996
tom dorgan — — source: Informix-list mailing list archive (1991-1998)
hello in esql/c if you call the rgetmsg function which "converts an Informix error mesage number into the corresponding message text string" and then send the string straight out via {f,v}printf, you will get a core dump in certain cases as what you get back can contain format strings that the printf routines take to indicate that you will be sending further arguments for. example: I got back "Error in the column name %s". sending that directly to printf dumps core as printf is looking for something to %s print. pretty nifty trick. Maybe this has been changed in after 4.0 cheers, tom dorgan. "I hate databases"