weird problem with frontend/main.c

 -- broken example --
# faac --title "sometitle" --track "08/10" -w input.wav -o output1.m4a

if --track is set to anything starting with 08 or 09 the trackno does not get set.  However, if ran like this:

 -- working example --
# faac --title "sometitle" --track "06/10" -w input.wav -o output2.m4a
it works fine.

Let's check the output files.
Example1 (title and totaltracks are missing):

# faad -i output1.m4a
--snip--
output1.m4a file info:

LC AAC  56.741 secs, 2 ch, 44100 Hz

tool: FAAC 1.24
title: sometitle

Example2 (title and totaltracks work)
# faad -i output2.m4a
--snip--
output2.m4a file info:

LC AAC  56.741 secs, 2 ch, 44100 Hz

tool: FAAC 1.24
title: sometitle
track: 6
totaltracks: 10


FIX:
diff -ru faac-orig/frontend/main.c faac/frontend/main.c
--- faac-orig/frontend/main.c   2004-04-22 07:07:14.000000000 -0700
+++ faac/frontend/main.c        2005-03-23 10:09:17.000000000 -0800
@@ -607,10 +607,10 @@
            album = optarg;
            break;
        case TRACK_FLAG:
-           sscanf(optarg, "%i/%i", &trackno, &ntracks);
+           sscanf(optarg, "%d/%d", &trackno, &ntracks);
            break;
        case DISC_FLAG:
-           sscanf(optarg, "%i/%i", &discno, &ndiscs);
+           sscanf(optarg, "%d/%d", &discno, &ndiscs);
            break;
        case COMPILATION_FLAG:
            compilation = 0x1;

