/[winpt]/trunk/Src/wptPassphraseCB.cpp
ViewVC logotype

Diff of /trunk/Src/wptPassphraseCB.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 259 by twoaday, Tue Aug 1 16:37:23 2006 UTC revision 260 by twoaday, Wed Aug 16 10:01:30 2006 UTC
# Line 328  extract_serial_no (const char *id) Line 328  extract_serial_no (const char *id)
328      p = strchr (id, '/');      p = strchr (id, '/');
329      if (!p) {      if (!p) {
330          log_debug ("extract_serial_no: error '%s'\r\n", id);          log_debug ("extract_serial_no: error '%s'\r\n", id);
331          return NULL;          return "";
332      }      }
333        memset (buf, 0, sizeof (buf));
334      strncpy (buf, id+(p-id)-6, 6);      strncpy (buf, id+(p-id)-6, 6);
335      return buf;      return buf;
336  }  }

Legend:
Removed from v.259  
changed lines
  Added in v.260

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26