Fixed data type for a buffer.
authorStig Bjørlykke <stig@bjorlykke.org>
Sun, 18 Oct 2009 21:29:44 +0000 (21:29 -0000)
committerStig Bjørlykke <stig@bjorlykke.org>
Sun, 18 Oct 2009 21:29:44 +0000 (21:29 -0000)
svn path=/trunk/; revision=30609

wiretap/dct3trace.c

index 90d05d8036f49f171ea08d632ec0d923ef13d762..3d43e639295a6a7c88701d096de396ad56503cd6 100644 (file)
@@ -343,7 +343,7 @@ static gboolean dct3trace_read(wtap *wth, int *err, gchar **err_info,
 {
        guint64 offset = file_tell(wth->fh);
        int buf_len;
-       char buf[MAX_PACKET_LEN];
+       unsigned char buf[MAX_PACKET_LEN];
 
        if( !dct3trace_get_packet(wth->fh, &wth->pseudo_header, buf, &buf_len, err, err_info) )
        {
@@ -372,7 +372,7 @@ static gboolean dct3trace_seek_read (wtap *wth, gint64 seek_off,
        int *err, gchar **err_info)
 {
        int buf_len;
-       char buf[MAX_PACKET_LEN];
+       unsigned char buf[MAX_PACKET_LEN];
 
        if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1)
        {