瀏覽代碼

svn: 1719

Bryan Drewery 21 年之前
父節點
當前提交
3bb26cb30c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/socket.c

+ 1 - 1
src/socket.c

@@ -64,7 +64,7 @@ static connect_info_t *attach(int idx, const char *host, int port, int timeout)
                 char buf[128];
                 egg_timeval_t howlong;
 
-                snprintf(buf, sizeof(buf), "idx %d to %s/%d", idx, host, port);
+                egg_snprintf(buf, sizeof(buf), "idx %d to %s/%d", idx, host, port);
                 howlong.sec = timeout;
                 howlong.usec = 0;
                 connect_info->timer_id = timer_create_complex(&howlong, buf,