1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-05 21:48:33 +00:00
Pavel Labath 5ded90e22a Fix wlan stats segfault (sf.net #3581218)
Sometimes wlan related TEXT causes segment fault, and backtrace shows it's strtok in
iw_get_stats.

I read the code of wireless_tools, which says 'strtok not thread safe, not used in WE-12 and
later' for iw_get_stats. But it need to first check if has_range and then we_version_compiled.

In conky/src/linux.cc, iw_get_stats is called before iw_get_range_info, hence has_range is always
0 in iw_get_stats and strtok is used. I simply move iw_get_range_info before iw_get_stats and no
segfault up to now.

patch by ruikai
2012-11-01 15:04:08 +01:00
..
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-07-13 20:17:54 +02:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2006-08-12 06:10:18 +00:00
2012-05-03 16:34:44 -07:00
2012-07-13 20:17:54 +02:00
2011-10-13 09:41:53 +02:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-07-20 13:44:53 +02:00
2012-05-03 16:34:44 -07:00
2010-08-21 18:01:16 +02:00
2012-05-03 16:34:44 -07:00
2012-07-06 15:13:59 +02:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-07-13 20:17:54 +02:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-07-06 15:13:59 +02:00
2012-07-06 15:13:59 +02:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2010-01-06 19:45:19 -08:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-07-13 20:17:54 +02:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-07-13 20:17:54 +02:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2010-04-30 19:33:21 +02:00
2010-04-30 19:33:21 +02:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2011-02-16 00:33:22 +01:00
2011-02-16 00:33:22 +01:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-07-13 20:17:54 +02:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-07-19 18:42:34 +02:00
2010-09-13 11:49:44 +02:00
2010-01-10 22:06:01 +01:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-07-13 20:17:54 +02:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00
2012-05-03 16:34:44 -07:00