[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in id-utils
From: |
Erwin J. |
Subject: |
bug in id-utils |
Date: |
Fri, 26 Sep 2003 11:32:01 +0200 |
Hi,
There's a bug in id-utils 3.2.
if mkid is started without arguments, it fills in "." as the working
dir. However, on RedHat 9, strtok(3) notes in the BUGS section that
strtok should not be used on constant strings. This is precisely what
happens in mkid.c:262-265.
It can be fixed by using a temporary variable and strdup "." into it,
and assign that variable to argv.
Grtz
EJ
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug in id-utils,
Erwin J. <=