[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions.
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] [PATCH] Add Windows versions of time related functions. |
Date: |
Fri, 18 Mar 2016 17:01:49 -0700 |
Yo Rob!
On Fri, 18 Mar 2016 23:53:40 +0000
Rob Norris <address@hidden> wrote:
> + if (sscanf(isotime, "%u-%u-%uT%u:%u:%lf", &year, &mon, &mday,
Please find another way. sscanf() is very touchy and segfaults when you
glance at it sideays. Doing the proper validation to keep it from segfaulting
is more work than parsing things yourself.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
pgpWg41da9zSH.pgp
Description: OpenPGP digital signature