]> sigrok.org Git - libsigrok.git/blobdiff - hardware/common/serial.c
sr: adjust copyright year
[libsigrok.git] / hardware / common / serial.c
index 4866230c0f204af79dd479330cb27745b2c10f95..de97496a8748d698feed02f9eafe8ce47693a099 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the sigrok project.
  *
- * Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
+ * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -57,7 +57,7 @@ SR_PRIV GSList *list_serial_ports(void)
 #ifdef _WIN32
        /* TODO */
        ports = NULL;
-       ports = g_slist_append(ports, strdup("COM1"));
+       ports = g_slist_append(ports, g_strdup("COM1"));
 #else
        glob_t g;
        unsigned int i, j;
@@ -67,7 +67,7 @@ SR_PRIV GSList *list_serial_ports(void)
                if (glob(serial_port_glob[i], 0, NULL, &g))
                        continue;
                for (j = 0; j < g.gl_pathc; j++)
-                       ports = g_slist_append(ports, strdup(g.gl_pathv[j]));
+                       ports = g_slist_append(ports, g_strdup(g.gl_pathv[j]));
                globfree(&g);
        }
 #endif