Read nsecs as a signed value.

svn path=/trunk/; revision=30189
This commit is contained in:
Stig Bjørlykke 2009-09-29 07:44:40 +00:00
parent ee37f6194f
commit 4bdf8638b5
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ daintree_sna_read(wtap *wth, int *err, gchar **err_info _U_, gint64 *data_offset
} while (readLine[0] == COMMENT_LINE);
/* parse one line of capture data */
if (sscanf(readLine, "%*s %" G_GINT64_MODIFIER "u.%u %u %s",
if (sscanf(readLine, "%*s %" G_GINT64_MODIFIER "u.%d %u %s",
&seconds, &wth->phdr.ts.nsecs,
&wth->phdr.len, readData) != 4) {
*err = WTAP_ERR_BAD_RECORD;