From f0000ae8e62df9606160ab683ae163ddc40c32c4 Mon Sep 17 00:00:00 2001 From: deller Date: Tue, 05 Apr 2005 21:10:11 +0000 Subject: crash-fix in odevice.cpp while scanning the distribution table (#1565) --- diff --git a/ChangeLog b/ChangeLog index b917c4f..01e5e40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ * n.a. - scale O-Menu-Applets appropriately (mickeyl) * #1535 - Missing line break and unnecessary location shown with Today-Calendar plugin (deller) * n.a. - always show volume and wireless applet popups inside visible screen (deller) + * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) 2005-03-25 Opie 1.2.0 diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index af77ed1..fcdbf45 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp @@ -191,7 +191,7 @@ ODevice::ODevice() // identified by /etc/familiar-version or /etc/oz_version. // Then check for OpenEmbedded and lastly, read /etc/issue - for ( unsigned int i = 0; i < sizeof distributions; ++i ) + for ( unsigned int i = 0; i < sizeof(distributions)/sizeof(ODistribution); ++i ) { if ( QFile::exists( distributions[i].sysvfile ) ) { -- cgit v0.9.0.2