#557 are these really dangerous?

development
closed-fixed
Program (402)
9
2006-10-28
2006-10-12
Anonymous
No

file.c(1660): warning #556: a value of type "const char
*" cannot be assigned to an entity of type "char *"
errmsg = errorString();

file.o: In function `PrintString':
file.c:(.text+0x1cbd): warning: the use of `tmpnam' is
dangerous, better use `mk stemp'

Discussion

  • Thorsten Haude

    Thorsten Haude - 2006-10-13

    Logged In: YES
    user_id=119143

    The first one should be fixed.

    The second one is already taken care of, the error message
    that still shows is comes from the glibc that does not
    understand our fix.

     
  • Thorsten Haude

    Thorsten Haude - 2006-10-13
    • priority: 5 --> 9
    • assigned_to: nobody --> yooden
    • labels: --> Program
    • milestone: --> development
    • status: open --> open-accepted
     
  • Tony Balinski

    Tony Balinski - 2006-10-13

    Logged In: YES
    user_id=618141

    The first of these is on its way out. The errmsg pointer is
    only ever used once, and can be replaced there by the call
    to errorString(). I've got this change in my BufAsString
    patch, which is going in very soon.

     
  • Thorsten Haude

    Thorsten Haude - 2006-10-13

    Logged In: YES
    user_id=119143

    Related to this, there is some unpleasantness in the general
    area:

     
  • Thorsten Haude

    Thorsten Haude - 2006-10-13
    • status: open-accepted --> pending-fixed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks